Search code examples
iphoneuiimageviewuiimagecocos2d-iphoneuicolor

I want to exchange a particular color inside an image with another color. Is there any possible way?


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.


Solution

  • 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.