Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you change the color of an Image in WPF?

Tags:

c#

wpf

xaml

I have a .png image that's just white-on-transparent, and I'm wondering if there's an easy way to make that green-on-transparent, red-on-transparent, etc so I don't need to make separate .png files for each color.

like image 331
Dax Fohl Avatar asked Oct 31 '25 01:10

Dax Fohl


1 Answers

Take a look at these CodeProject Articles

  • Image Processing Lab
  • ImageMagic-WPF Image Color Spaces

Image Processing Lab is a simple tool for image processing, which includes different filters and tools to analyze images available in the AForge.NET framework.

You could also take a look at the FormatConvertedBitmap, ColorConvertedBitmap or WritableBitmap Class's

like image 69
Mark Hall Avatar answered Nov 01 '25 17:11

Mark Hall



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!