Advertisement

Transparent BitBlt's

Started by June 19, 2001 10:57 AM
3 comments, last by Nullio 23 years, 7 months ago
How do I get BitBlt to use transparences?
http://www.winprog.org/tutorial-old/#2.
scroll down to Transparent images

Lalle
Advertisement
Check out my crappy explanation under another thread. (something about windows mates and "f*******" windows)
You need the image you want to draw, and a monochrome bitmask.

Make the areas on the image which you want to be transparent black.
On the bitmask, make white represent transparent areas and black where the actual image is.

BitBlt the mask using SRCAND.
BitBlt the image using SRCPAINT.

That should work.
is src_paint the invert operation? If not, that''s another way to do it.

This topic is closed to new replies.

Advertisement