Image (or thumbnail) scaling / sizing / stretching
Posted on 2003-10-29
Can I do the following in VB6...
At design-time, specify an area of a form, which is 500 x 500 pixels, which will be used to display an image
At run-time, specify the image to be displayed in the area of the form (for example "d:\picture.JPG")
If the selected images width <= 500 and height <= 500, then automatically display image at it's actual size
If the selected images width > 500 or height > 500, then automatically resize image to fit 500 x 500, while retaining proportions
Which components should I be looking at? (For example PictureBox or Image?)
Which properties / methods should I be looking at to determine the image's actual size?
Which properties / methods should I be looking at to resize image to fit 500 x 500?
*** Thank you for your time ***