如何从CGImageRef对象获取像素的RGB值?
问题描述:
我正在尝试从CGImageRef对象获取像素的RGB值.我知道我需要创建上下文或其他内容,但是我该怎么做?
I'm trying to get an RGB value of a pixel from a CGImageRef object. I know that I need to create a context or something but, how do I do this?