views:

19

answers:

0

Hi all,

The issue is drawing an indexed image on an iPhone (1 byte pr pixel, 256 colors). You can easily convert a raw image to a CGImage if it is 24 or 32 bts per pixel RGB using 'CGBitmapContextCreate' and 'CGBitmapContextCreateImage' but it does not work with indexed images, I have searched in iPhone SDK documentation and the WEB but didn't find a word about it.

Any idea? Thanks for helping. Greg