What is the best way to set the RGB components of every pixel in a System.Drawing.Bitmap to a single, solid color? If possible, I\'d like to avoid manually loop
System.Drawing.Bitmap
Yes, use a ColorMatrix. It ought to look like this:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 R G B 0 1
Where R, G and B are the scaled color values of the replacement color (divide by 255.0f)