Zoom for my Form

Hi everybody:
In a Form I want to show two images: Original at left and Processed at the right. The form has its Properties AutoSize to true and AutoSizeMode to "GrowOnly".
If I put big pictures (720x546 pixels), my form grows and shows complet the image on the left (original) but the right image will be cut, because the both images are wider als my screen.
How can I do that??
Thanks in advance.

garrido
Instead of BitBlt() use StretchBlt() to draw the image using the new destination size. That would be the unmanaged C++ way of doing it.

But somehow I have the feeling you are using C++/CLI. If you are, the picture box control should be able to do this for you automatically. See the PictureBox class reference, SizeMode property.

http://msdn.microsoft.com/en-us/library/system.windows.forms.picturebox.sizemode.aspx
Topic archived. No new replies allowed.