Bill Kirby <[EMAIL PROTECTED]> wrote in message
news:63237@palm-dev-forum...
> It doesn't matter what the actual color of index 0 and 255 are. It's just
> the *index* of the pixel that matters when doing masking
> operations. Masking involves doing bitwise operations on the pixel index,
> so you want each pixel to either be all 0's or all 1's. (0 and 255 in the
> case of an 8-bit pixel).
Thanks! I guess I misinterpreted the documentation: it kept mentioning
"white pixel" and "black pixel" explicitly. It makes much more sense now
that I see your explanation. I'd been wondering how the Palm OS did the
masking efficiently with arbitrary pixel indexes. They don't. :)
On the plus side, this means I'll be able to draw text of any color on a
textured background as long as I put that color at either position 0 or 255
in my palette. Hmmmm...
-----> kell
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/