How do I use a monochrome bitmap to display a color image on the iPhone?
Posted
by No One in Particular
on Stack Overflow
See other posts from Stack Overflow
or by No One in Particular
Published on 2010-04-22T01:14:07Z
Indexed on
2010/04/22
1:23 UTC
Read the original article
Hit count: 250
iphone-development
I have a sequence of bits for a monochrome image (0 => black, 1 => white). I want to take this data and draw an image on the iPhone in color. If a pixel value == 0, then paint it color1, else color2.
I have gotten absolutely nowhere. Originally, I thought I could use glBitmap, but it is not supported on the iPhone.
Does anyone have an idea of how to do this?
Thanks in advance.
© Stack Overflow or respective owner