I want to find out all the pixels fit the specified color in bitmap.
For example, I want to find the positions(x, y) of the pixels these are color: [UIColor colorWithRed:255 green:0 blue:0 alpha:1]
.
How to get this?
I want to find out all the pixels fit the specified color in bitmap.
For example, I want to find the positions(x, y) of the pixels these are color: [UIColor colorWithRed:255 green:0 blue:0 alpha:1]
.
How to get this?
This should get you started:
How to get pixel data from a UIImage (Cocoa Touch) or CGImage (Core Graphics)?