Home > Software engineering >  MFC BMP image display, and through the button to enlarge, shrink, and move
MFC BMP image display, and through the button to enlarge, shrink, and move

Time:10-25

Novice, please try to clear

CodePudding user response:

Opencv to satisfy all your needs

CodePudding user response:

MFC CImage, through control controls the size of the image to zoom in,

CImage http://blog.csdn.net/akof1314/article/details/5167279
http://www.xuwu.org/gdiplus-image/

CodePudding user response:

StretchBlt ()

CodePudding user response:

Turn novice c #, c # interface do better

CodePudding user response:

refer to the second floor void_main_void response:
MFC CImage, by controlling the controls the size of the image to zoom in,

CImage http://blog.csdn.net/akof1314/article/details/5167279
http://www.xuwu.org/gdiplus-image/

+ +

Gdiplus Bitmap can also meet the demand

CodePudding user response:

Stretchblt can, if you think it efficiency is too low, then find another way, but the MFC commonly used inside the,


The above that the switch is in the selected stretchblt mode, you can go to check, is a color of overlap pixels value selected with operation or to abandon one or using a fusion algorithm, the efficiency of three different, the result is different also,
Is below the stretchblt function usage, to check the parameters, the pile of Numbers in the first four of them is to be on the device display area in the upper left point x, y, width, height of region, this is relative to equipment dc, such as you now the dc current dialog box, then the position is relative to the current dialog upper vertices, behind four Numbers is you want to read the bitmap object inside the area, upper vertices x, y, and the width and height, such as a picture is 600 * 800, you have to cut the lower part, that is, 0400600400