Starting from here:
CGBitmapInfo sampleCGImageBitmapInfo = CGImageGetBitmapInfo(sampleCGImage);
How do I use the constants in the defined in the CGImage Reference to determine the byte order use in the image. I want to test against the constants kCGBitmapByteOrder32Little and kCGBitmapByteOrder32Big. I would like to know how to code that. A great answer would be something like:
...
NSLog(@"kCGBitmapByteOrder32Big = %___", ____);
You can test it against the constants that are defined with CGBitmapInfo, like so:
See here in the “Constants” section for details.