G
Guest
Hello,
I am putting together a simple picture viewing program to view jpg. bmp
pictures. I have the picturebox sizemode set to autosize. I have the
picturebox in a pannel set to autoscroll, so if I get a picture that is
larger than the width/height of the containing form (pannel, etc) I can
scroll. But some of the pictures are like 5 megapixels and are just way too
large for the screen. When I open this pic in Microsoft Photo Editor - it
opens to 50% zoom by default. How can I set the zoom in my picturebox which
is set to autosize? How do I set the zoom? Like if I get the image size say
1900x800 I will automatically zoom the image to 50%. How do I set the zoom
of the image? I tried Img.Zoom, but there is no .Zoom.
Thanks,
Rich
I am putting together a simple picture viewing program to view jpg. bmp
pictures. I have the picturebox sizemode set to autosize. I have the
picturebox in a pannel set to autoscroll, so if I get a picture that is
larger than the width/height of the containing form (pannel, etc) I can
scroll. But some of the pictures are like 5 megapixels and are just way too
large for the screen. When I open this pic in Microsoft Photo Editor - it
opens to 50% zoom by default. How can I set the zoom in my picturebox which
is set to autosize? How do I set the zoom? Like if I get the image size say
1900x800 I will automatically zoom the image to 50%. How do I set the zoom
of the image? I tried Img.Zoom, but there is no .Zoom.
Thanks,
Rich