1
Answer

Printing an image file in C#

Ask a question
tom

tom

16y
6.3k
1
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)