I want to get the locations of the pixels in a UIImage
whose color matches a specified color.
For example, I want to find the position(x, y) of the pixels of this color: [UIColor colorWithRed:255 green:0 blue:0 alpha:1]
.
CGPoint point = getFirstPixelOfColor([UIColor colorWithRed:255 green:0 blue:0 alpha:1].CGColor);