473,396 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

resize an image and keep it's proportion?

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.
Jul 11 '06 #1
4 2429
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
nj********@hotmail.com
http://www.nathansokalski.com/

"Kyote" <tr******@nospamgmail.comwrote in message
news:l7********************************@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.

Jul 11 '06 #2
On Mon, 10 Jul 2006 19:11:43 -0500, Kyote <tr******@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
Jul 11 '06 #3
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"
<nj********@hotmail.comwrote:
>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?
Jul 11 '06 #4
On Tue, 11 Jul 2006 00:04:01 -0700, gene kelley <ok**@by.mewrote:
>On Mon, 10 Jul 2006 19:11:43 -0500, Kyote <tr******@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.
Jul 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Harry Putnam | last post by:
I keep stumbling around with varius alignment tags, even using STYLE tag with absolute positioning but not getting a simple job done. I have an arrangment like this: ...
1
by: davemonnerat | last post by:
i have a jpeg image that i want to resize, but not lose any quality (or as little as possible). i found a lot of samples out there that resize an image, but most of them basically kill the...
0
by: Shapper | last post by:
Hello, In a database each record has an image url. All images are 200px width but the height is different from image to image. I need to display a smaller version of these images on my web...
2
by: Shapper | last post by:
Hello, In each record of an ASP.Net Repeater I have an image which original size is 200px width and with a height which can vary from record to record. How can I resize each image to 50px and...
4
by: rbt | last post by:
What's a good way to resize pictures so that they work well on html pages? I have large jpg files. I want the original images to remain as they are, just resize the displayed image in the browser.
2
by: Adam J Knight | last post by:
Hi all, I am trying resize an image using the following code. //resize image System.Drawing.Image ImageUpload =...
1
by: Stan SR | last post by:
Hi, I have some tiff images that I need to use for pdf files. I need to resize them, but I get a very bad quality. I would like to know what is the trick to keep the high quality ? Here's my...
3
by: =?iso-8859-1?q?Jean-S=E9bastien?= | last post by:
hello, is it possible to resize an image with same proportion. having a maximum height and a maximum width. the solution should work on main browsers (do not use max-height and max-width). ...
3
by: =?Utf-8?B?UiBSZXllcw==?= | last post by:
Hi! This discussion may help other programmers get a better idea of how to save uploaded images through a website. Why? Well currently, I save 3 versions of every uploaded image on my own...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.