Is there a good analog to NSBitmapImageRep in UIKit? Specifically I’m looking for similar methods to setPixel:atX:y: and getPixel:atX:y:. I have found this technote, and it does get me most of the way there using CGImage, but how do I know what order the pixels are in?
Is there a good analog to NSBitmapImageRep in UIKit? Specifically I’m looking for similar
Share
Using the above calls, you can figure out how each pixel is laid out. Each pixel for x,y will start at:
A typical 32 bit ARGB PNG might be: