How do I know how many bytes one pixel has in a CGImageRef?
The doc mentions CGBitmapContextGetBitsPerPixel (). I'm pretty sure I just need to divide this by 8.
But since I have not studied computer science, I am confused about the details. Does it matter if it's an 8-bit PNG or a 24-bit PNG? Or some other PNG?
So to get the safe bytes per pixel of the CGContextRef I would just split by 8?
0
a source to share