tom

tom

  • NA
  • 8
  • 0

Printing an image file in C#

Jul 22 2008 12:41 AM
I want to print an image kept on hard disk but the printed image is not complete because of its size,what should I do so that the entire image fits into the A4 size paper. following is the code I used in document's PrintPage event: private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { //name of the image file is bmp e.Graphics.DrawImage(bmp,new Point(0,0)); }

Answers (1)