iPhone images on the simulator and the actual device - different bitsPerPixel values?

Posted by Reuven on Stack Overflow See other posts from Stack Overflow or by Reuven
Published on 2010-03-18T12:12:00Z Indexed on 2010/03/18 12:21 UTC
Read the original article Hit count: 204

Filed under:
|
|
|

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!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about images