我试过使用本文中描述的类别解决方案(How to get the RGB values for a pixel on an image on the iphone)。它似乎不适用于我的情况。 我的方案,我画圈圈响应敲击手势: //mainImageView is an IBOutlet of class UIImageView. So here we simply get a pointer to
我有一些 CGImageRef cgImage = "something"
有没有办法来处理这个cgImage的像素值?例如,如果此图像包含0.0001和3000之间的值,因此当我尝试在NSImageView(How can I show an image in a NSView using an CGImageRef image) 中以这种方式查看或释放图像时,我得到一个黑色图像,所有像素都