VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

LogicalSize

Harley Neal  (1 Submission)   Miscellaneous   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Resize and Center an image control(maintaining image proportion)(remember to load an image)
inside a picturebox control. This code rescales and centers the image to a size small enough
to fit inside any give picture box. Good for thumbnails. I don't know if
this code is bug proof... Let me know what you think ,Thanks

Side Effects
none??

API Declarations
'Put this code in a Regular module: declare this..
Public SmartSize= new class1 ' SmartSize can be any name

Rate LogicalSize (4(4 Vote))
LogicalSize.bas

LogicalSize Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters