How can I gracefully re-size a bmp to fit into a specific size picture box?
Printable View
How can I gracefully re-size a bmp to fit into a specific size picture box?
Really, you don't because there is no need. You can draw the .Picture property to the picturebox (AutoRedraw=True) after a .CLS call. Look at the 'stdPicture Render Usage' link in my signature below. If the image is not a transparent GIF, then you may wish to use VB's PaintPicture instead.
Edited: The above is a more proper way to 'resizing' the image, but a different way is to add the image to an Image control (Stretch property as True), then place that image control inside your picturebox and resize it to the picturebox's ScaleWidth & ScaleHeight. Also, you can simply just use an image control.