|
-
March 1st, 2009, 07:48 PM
#1
shrink bitmap
Hi,
I have bitmap image that I load into picture control on my dialog box(using mfc). Problem is that bitmap image is way bigger then picture control and it gets cut off. This is my method that I load image into picture control.....
loadImage(CString myString){ //myString is name of image in my directory
HBITMAP phBitmap = (HBITMAP)LoadImage( NULL,myString,
IMAGE_BITMAP, 0, 0,LR_CREATEDIBSECTION | LR_LOADFROMFILE);
picture.SetBitmap(phBitmap);
}
Does anyone know how to shrink bitmap image and load that into picture control or to point me to some good tutorial. I found some tutorials already but they so confusing since they have so many lines of code for simple functionality that I need.
Thanks guys
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|