Home All Groups Group Topic Archive Search About

resize an image and keep it's proportion?

Author
11 Jul 2006 12:11 AM
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.



-------
Kyote
Please reply to the group.

Author
11 Jul 2006 1:48 AM
Nathan Sokalski
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?
--
Nathan Sokalski
njsokal***@hotmail.com
http://www.nathansokalski.com/

Show quoteHide quote
"Kyote" <truthowl@nospamgmail.com> wrote in message
news:l7p5b2h4kb2ksckoa48bi4fqf7k9uo2sre@4ax.com...
> 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.
>
>
>
> -------
> Kyote
> Please reply to the group.
Author
11 Jul 2006 4:34 PM
Kyote
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.

On Mon, 10 Jul 2006 21:48:50 -0400, "Nathan Sokalski"
<njsokal***@hotmail.com> wrote:

Show quoteHide quote
>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?
Author
11 Jul 2006 7:04 AM
gene kelley
On Mon, 10 Jul 2006 19:11:43 -0500, Kyote <truthowl@nospamgmail.com>
wrote:

>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.
>
>
>
>-------
>Kyote
>Please reply to the group.
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
Author
11 Jul 2006 4:37 PM
Kyote
On Tue, 11 Jul 2006 00:04:01 -0700, gene kelley <o***@by.me> wrote:

Show quoteHide quote
>On Mon, 10 Jul 2006 19:11:43 -0500, Kyote <truthowl@nospamgmail.com>
>wrote:
>
>>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.
>>
>>
>>
>>-------
>>Kyote
>>Please reply to the group.
>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+.


-------
Kyote
Please reply to the group.