[英]How to get the pixels fit the specified color in bitmap UIImage?
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]
. 例如,我想找到这些像素的位置(x,y),它们是颜色: [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)? 如何从UIImage(可可触摸)或CGImage(核心图形)获取像素数据?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.