Question

I'm trying to use the GDI MaskBlt command to draw an image with transparency: http://msdn.microsoft.com/en-us/library/dd145047(VS.85).aspx

I can't seem to find anything in the documentation about what raster operator to use for the obvious use case: a sort of MAKEROP4(SRCCOPY, DSTCOPY) - blitting where the mask is 1, and leaving the destination untouched where the mask is 0. SRCCOPY is a valid ROP, but what should I use in place of my fictional DSTCOPY ?

Was it helpful?

Solution

The MSDN page "Ternary Raster Operations" explains that the correct value is 0x00AA0029.

OTHER TIPS

Avoid MaskBlt and use transparency Win32 apis.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top