Replacing colour of an Image
Another solution using the ColorMatrix class. You can use the Graphics.DrawImage overload that accepts an ImageAttributes argument. ImageAttributes.SetColorMatrix() sets the color-adjustment matrix, optionally targeting a specific category (Bitmap, Pen, Brush etc.) and can be instructed to skip the Gray Colors, modify the Gray colors only or all Colors. The ImageAttributes.SetThreshold() method allows to regulate the … Read more