Color change in bitmap

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a real hard time understanding all this color matrix stuff. Graphics
has never been my strong suit but I keep getting dragged into it somehow.

Anyway, here's what I need to do. I have a bitmap that is black and white.
The white is transparent (easy enough with
Bitmap.MakeTransparent(Color.White)) but the black part is a bit trickier. I
need to change the color to a specific color in the Graphics.DrawBitmap()
call.

Given a Color struct, how would I generate a ColorMatrix to do this?

Thanks.

Pete
 
Back
Top