我想获取UIImage中颜色与指定颜色匹配的像素的位置。
例如,我想找到此颜色的像素位置(x,y):
例如,我想找到此颜色的像素位置(x,y):
[UIColor colorWithRed:255 green:0 blue:0 alpha:1]
。
CGPoint point = getFirstPixelOfColor([UIColor colorWithRed:255 green:0 blue:0 alpha:1].CGColor);