获取UIImage的Pixel颜色 [英] Get Pixel color of UIImage
本文介绍了获取UIImage的Pixel颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在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的Pixel颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文