How to SetPixel and GetPixel on UIView/UIImageView in IOS
SetPixel(point,color);
color GetPixel(point);
Basically, I want to remove all blue pixels from picture (UIImage) and make them red.
How to SetPixel and GetPixel on UIView/UIImageView in IOS
SetPixel(point,color);
color GetPixel(point);
Basically, I want to remove all blue pixels from picture (UIImage) and make them red.
If you want a drawable canvas ("SetPixel"), you should forget UIImageView
and go for a UIView
subclass where you can overload the drawRect:
method and paint the pixels to whatever color.
As for "GetPixel", here is a complete guide on the topic: How to get the RGB values for a pixel on an image on the iphone