Which BitBlt Raster Op?
I have a bitmap that contains black text on a white background. I want to copy this bitmap to another bitmap (via BitBlt), but change the white background so it's a light blue. I've created a light blue brush.
What combination of BitBlt raster ops should I use? PATPAINT, for example, is almost correct but makes the text light blue instead of the background.
Never mind, given that there's no good reference for each of the ops, I went through every one listed in Petzold's Programming Windows 95 and found 0xA000C9 (P & D) to do the biz. :cool:
So, for reference:- given a destination containing black text on a white background, using the 0xA000C9 ROP will paint the background with the destination DC's currently selected brush and leave the text intact.