Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an image which looks like this:

Enter image description here

However, the yellow line needs to be red and the cyan line needs to be green. I have Paint and IrfanView. How can I change the colors of the yellow and cyan line without individually selecting all pixels manually?

That is, what is a good way of changing all pixels of one color to another color?

share|improve this question

4 Answers 4

ImageMagick can do all sorts of fancy color replacements.

share|improve this answer

In games, many years ago we used *.PAL file editors to change one color per another. This is mostly for if your images are color indexed. (IE: Gifs are always color indexed)

It was used (also did again while doing mobile games) to change cloth colors so to make different enemies using only the memory in disk of a single one.

There are many tools, but as an example:

http://www.agentur-simon.de/pedit/

Also, you say you use irfanview, there's a plugin:

http://www.ivanview.com/pal.html

share|improve this answer

Pick an image editing program like Photoshop or GIMP (latter one is free), and paint the line with "Color" mode.

share|improve this answer
    
Gimp has select by color, which you can then fill with a different color. –  Chris K Jun 19 '12 at 23:44

Paint.NET will do it, You just need to do a fill, with 'global' mode instead of contiguous mode.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.