简体   繁体   English

如何使像素适合位图UIImage中的指定颜色?

[英]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? 如何得到这个?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM