When nWidthDest hHeightDest is not equal to nWidthSrc, int nHeightSrc scaling occurs, namely is serrated, this how to modify, I can't see there are ways to set the zoom algorithm,
The CDC: : SetStretchBltMode STRETCH_HALFTONE
CodePudding user response:
GdiAlphaBlend functionSee the comments section
If the source rectangle and destination rectangle are not the same size, and the source bitmap is stretched to match the destination rectangle. If the SetStretchBltMode function is 2, the iStretchMode value is automatically converted to COLORONCOLOR for this function (that is, BLACKONWHITE, WHITEONBLACK, and HALFTONE are changed to COLORONCOLOR).
Therefore SetStretchBltMode should be able to effectively
CodePudding user response:
Didn't work, If the SetStretchBltMode function is 2, the iStretchMode value is automatically converted to COLORONCOLOR for this function (that is, BLACKONWHITE, WHITEONBLACK, and HALFTONE are changed to COLORONCOLOR), the meaning of this sentence is said that the function will force COLORONCOLOR this way of interpolation,