Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想找出所有适合位图中指定颜色的像素。
例如,我想找到这些是 color: 的像素的位置(x,y)[UIColor colorWithRed:255 green:0 blue:0 alpha:1]。
[UIColor colorWithRed:255 green:0 blue:0 alpha:1]
如何得到这个?
这应该让你开始:
如何从 UIImage (Cocoa Touch) 或 CGImage (Core Graphics) 获取像素数据?