Drawing an indexed image on iPhone

Joined
Jun 10, 2010
Messages
1
Reaction score
0
Points
1
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
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
Note: Moved to appropriate forum.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top