VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Image Resize / Aspect Ratio

Zecho  (1 Submission)   Graphics   Visual Basic 5.0   Beginner   Wed 3rd February 2021

If you want to load an image and resize it maintaining the original aspect ratio, this is simple, short and works. Coded in VB6 but is most likely compatible with previous versions.
Start with an Image control INSIDE a PictureBox with the default names (Image1, Picture1).
There are two versions of the sub one with and one without comments.
Call this sub when you load a picture and from the Form_Resize() if your Picture1 resizes with the form.

Rate Image Resize / Aspect Ratio (6(6 Vote))
Image Resize / Aspect Ratio.bas

Image Resize / Aspect Ratio Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters