I have a mask bitmap (bmpMask) that I am drawing onto a destination bitmap (bmpDest). Both bitmaps have alpha channels but are already full of opaque content.
What I want to do is produce transparent areas using GDI+ 'Draw...' methods on bmpMask so that bmpDest shows through when I draw bmpMask over it.
Of course gMask.DrawLine(Pens.Transparent, 0, y, wMax, y)
causes no change to bmpMask, because GDI+ works as designed and doesn't draw anything when transparent. Even with semitransparent colors, only the r,g,b values of bmpMask's pixels are updated.
But what I want to do is issue a draw method that will change the alpha channel of bmpMask so it is transparent when drawn onto bmpDest. I know I can do this with SetPixel or speedier unsafe or Marshall alternatives, but that would cause a much more complicated solution. Thanks.