I have a image & i want to change the color of that image through programatically.
& I want to change the color of this image
I have a image & i want to change the color of that image through programatically.
& I want to change the color of this image
You can try Ankish Jain's answer, it works for me.
As I've answered here iPhone - How do you color an image? in my opinion the best way to colorize an image from iOS 7 is by using
and then change the tintColor of the imageView or whatever contains the image.
UPDATE:
Use this method...
Use it like bellow...
hope this helpful to you.....
CoreImage Color Filters work great for this kind of tasks - I find them slightly more straightforward than using the Core Graphic classes (CG...) : They work by allowing you to adjust the RGB and Alpha characteristics of the image I have been using them to change the white background of a QRCode to colored. RGBA of white is (1,1,1,1) in your case I believe you have to reverse the colour. Just check the CI documentation of Apple, there are a few dozen filters available CIColorMatrix is just one of them.
Here is the Swift version: