Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing a bmp image size in VB

Status
Not open for further replies.

cturland

Programmer
Sep 25, 2000
66
0
0
GB
Hi all,

Is it possible to change a bmp image size in VB without the use of any paint packages?

Thanks,
Carl
 
If you are asking, can you change an image placed on a VB form the answer is yes by setting the image's 'Stretch' property to 'True' then sizing the image.

*Note: The image will lose some of its integrity.
 
Moki's tip assumes your image is held in an Image control and not a PictureBox control.

If you want to do it programatically, use the StretchBlt API call. It's like BitBlt, used for copying bitmaps, except it allows you to specify the target size.

- Andy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top