Zoom/resize image in picturebox with sizemode set to autosize

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
 
G

Guest

Thanks all for your replies. I am still using VS2003. Would the examples
from the 101 samples site work with 2003? I will also try your example -
Peter.

Thanks again all,
Rich
 
C

Cor Ligthert [MVP]

Rich

This is what I wrote

With what I mean Net 1.1 ergo Visual Studio 2003, you have to page to those
pages and than that is written somewhere

I hope this helps,

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top