How to get RGB value of a pixel from a CGImageRef object?

ε祈祈猫儿з 提交于 2019-12-10 20:22:13

问题


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?


回答1:


This post shows you how to do it.



来源:https://stackoverflow.com/questions/1096407/how-to-get-rgb-value-of-a-pixel-from-a-cgimageref-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!