Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Is there a way to swap the colors of an image? For example, in the image below the white can become the red and the red can become the white. I need the anti-aliasing around the edge of the circle to swap as well.
The circle is just an example. I'm asking more generically, so I can apply the same commands to any image of 2 main colors (and anti-alisasing between them).
What version IM? "level-colors" doesn't change transparency, for me, using IM v6. For v7, we need to restrict the operations to RGB channels, with "-channel RGB" before the operations and "+channel" after.