Reputation: 350
I will like to know how I can change just one color in a image. Like saying: if the color in this pixel is "red" change it to "blue".
Upvotes: 1
Views: 2455
Reputation: 16941
The technical approach is straightforward:
Keep in mind, if you mix the three steps into one method, without creating UIColor objects but changing them and immediately afterwards drawing the changed image, you'll get much better performance.
Upvotes: 4