resize an image and keep it's proportion?

  • Thread starter Thread starter Kyote
  • Start date Start date
K

Kyote

I'm trying to make a simple little image viewing program to help me
organize my photo's. But I'm having trouble with resizing the image
so it fits in my picturebox in it's proper proportions.
 
Are you trying to recreate the .gif/.jpg/.jpeg file, or are you simply
trying to determine the values to use for the Height and Width properties?
 
I'm trying to make a simple little image viewing program to help me
organize my photo's. But I'm having trouble with resizing the image
so it fits in my picturebox in it's proper proportions.
If using vb2005, go to the Help file. Search "GDI+ images".
Get the example. Run the example and note the use of "Zoom percent"
when opening a file.

Gene
 
I'm simply trying to open an existing image file *.jpg in a picturebox
control and resize it to fit while maintaining it's proportions.
 
If using vb2005, go to the Help file. Search "GDI+ images".
Get the example. Run the example and note the use of "Zoom percent"
when opening a file.

Gene

Thanks Gene. Yes I'm using vb2005 and I'm trying your recommendation.
It looks to have all I should need to understand how to do what I want
to do. Thank you for pointing me in the right direction. I never would
have thought to search for GDI+.
 

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

Back
Top