获取 UIImage 的像素颜色 [英] Get Pixel color of UIImage
本文介绍了获取 UIImage 的像素颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获取 UIImage 中特定像素的 RGB 值?
How can I get the RGB value of a particular pixel in a UIImage?
推荐答案
你不能直接访问原始数据,但是通过获取这个图像的 CGImage 你可以访问它.这是另一个问题的链接,可以回答您的问题以及您可能对详细图像处理提出的其他问题:CGImage
You can't access the raw data directly, but by getting the CGImage of this image you can access it. here is a link to another question that answers your question and others you might have regarding detailed image manipulation : CGImage
这篇关于获取 UIImage 的像素颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文