Hello,
I'm trying to draw images in a PDF. I need them to fit into a space smaller or bigger than the original size and still maintain the aspect. From what I have gathered in this forum, the recommended method is to draw the image and give a new size like this:
header.Graphics.DrawImage(titleImage, new PointF(0, 0), new SizeF(newWidth, newHeight));
The original image is 1190 x 160. The height of the space I want to fill with the image is 100. How do I scale the image to fill that height keeping the aspect?
Thanks.
Alan