Home > Software engineering > MFC about in the picture control according to the pixel image how to adapt to control the size of th
MFC about in the picture control according to the pixel image how to adapt to control the size of th
Time:09-27
In the picture control control, according to each pixel values using setpixel function with a picture, now is to make it adaptive control size, Searched a lot, however, are basically local to pass on the bitmap drawing using SetStretchBlt function, bitmap has its own id, the above code is done, but limited to import a bitmap for stretching, want to ask everybody greatly here, setpixel function according to the pixel values of the image to have their own id, if not, how to play the image size, adaptive control, and thank you god! Ask for advice!!!!!
CodePudding user response:
DDDDDDDDDDDD
CodePudding user response:
Use your RGB data, create CreateBitmap first then StretchBlt ()