I have a 32 bit CBitmap buffer on which I AlphaBlend things. However I was wondering if there was a way to ‘clear’ a rectangular region of the CBitmap completely (as in either set all the Alpha values of the pixels in a specific region to 0 or just clear the region completely).
I can’t used GDI+!
There is no such thing as “Clearing” a bitmap. You just change the color of pixels. If you define “clear” as pure black, then you set the pixels to black. The simplest way to do this is with
CDC::FillRect.