This project has moved and is read-only. For the latest updates, please go here.

Replace color with another

Sep 25, 2013 at 3:44 AM
Here is an example of what I would like to do:

For example to replace a 'blue' color with say 'white' you would use a command like this...

convert balloon.gif -fill white -opaque blue balloon_white.gif

I have found image.Fill() but am not able to find a way to specify what color to replace.

thanks for any help.
Sep 25, 2013 at 9:22 AM
Edited Sep 25, 2013 at 9:22 AM
It is the opaque method that does all the magick:
using (MagickImage image = new MagickImage("balloon.gif"))
  image.Opaque(Color.Blue, Color.White);
Sep 25, 2013 at 8:47 PM
Wow. Thanks for the quick response.

Thanks again!