2

I have one image with multiple colors.

I want to change a specific color with the alternate color that i have pre-decided.

Is there any algorithms to modify the image and save it?

Help is appreciated.

Thank you very much.

Peter DeWeese
  • 18,141
  • 8
  • 79
  • 101
NIKHIL
  • 2,719
  • 1
  • 26
  • 50

2 Answers2

2

Definatly yes.

Look here Bitmap Images and Image Masks

Look in that page for: "Masking with color"

shannoga
  • 19,649
  • 20
  • 104
  • 169
2

See the selected answer to this question:

How to make one color transparent on a UIImage?

It also shows turning red pixels green, which applies to your question.

Community
  • 1
  • 1
Peter DeWeese
  • 18,141
  • 8
  • 79
  • 101