Getting and setting the RGB / RGBA value of a pixel in a CCSprite (cocos2d-x)
问题 Why do I need this? Basically I need to turn a color image into gray-scale. Including a gray-scale version of the image could be a solution, but space is tight in my situation - I don't want my APK to be too big. Besides, I would like to work on the pixels for some effects too. Again, this is to make the APK smaller. I have found getPixel setPixel from CCTexture2D and Getting image's pixel RGBA, but I would like something more simple. Any help is appreciated. Thank you! 回答1: Here is my