title: Printing image with PrintDocument. how to adjust the image to fit paper size
body: <p>In C#, I am trying to print an image using PrintDocument class with the below code. The image is of size 1200 px width and 1800 px height. I am trying to print this image in a 4*6 paper using a small zeebra printer. But the program is printing only 4*6 are of the big image. that means it is not adjusting the image to the paper size ! </p>
  
  <pre><code>     PrintDocument pd = new PrintDocument();
       pd.PrintPage += (sender, args) =&gt;
       {
             Image i = Image.FromFile("C://tesimage.PNG");
             Point p = new Point(100, 100);
             args.Graphics.DrawImage(i, 10, 10, i.Width, i.Height);
       };
       pd.Print();
  </code></pre>
  
  <p>When i print the same image using Window Print (right click and select print, it is scaling automatically to paper size and printing correctly. that means everything came in 4*6 paper.) How do i do the same in my C# program ?</p>