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 ()

CodePudding user response:

The
reference 3 floor VisualEleven response:
use your RGB data, create CreateBitmap first then StretchBlt ()

Ever directly to you with createbitmap image the size of the adaptive control method of scaling think again after the long,,

CodePudding user response:

Don't you think the Set Pixel low efficiency? If data is bigger?

CodePudding user response:

reference 5 floor VisualEleven reply:
Set Pixel efficiency low, don't you think? If data is bigger?

Is there is little demand, 200 * 200 or so did regardless of the solving methods such as ahhh
  • Related