iPhone images on the simulator and the actual device - different bitsPerPixel values?
- by Reuven
Hi there,
I have code running in an iPhone application I am developing.
Basically, the code needs to load an images and calls:
size_t bitsPerPixel = CGImageGetBitsPerPixel(imageRef);
I noticed that on the iPhone simulator this call returns 24 and the device itself it returns 32.
Is this behavior by design?
Is it something I can control?
Thanks!