I have been using masks to generate transparent areas of bitmaps for some time now, but I have just hit a problem.
In the mask, the black represents the transparent section and white represents the opaque sections, and in the actuall image black represents transparency all the rest is blited to the screen. What if I want to a make part of an image transparent but some of the image I want to display is black, to it just keeps getting recognised as a transparent section?
in other words, how can I invert what colors represent transparent/opaque?
The masks and the original images have nothing to do with one another. What I mean is that you can have black on your actual image and use white to mark it as an area to be drawn on the mask.
Ok now on to your actual question, you can do a BitBlt() with the SRCINVERT or DSTINVERT flags in order to invert your mask image.