Hi Sridhar,
I assume that you are using OS V3.5 or greater. This is because the concept
of Color Palette was intorduced only here.
Palm OS supports system palettes of 1, 2, 4, or 8 bits-per-pixel.
The Details are:
1-bit: white (0) and black (1)
2-bit: white (0), light gray (1), dark gray (2), and black (3)
4-bit: 16 shades of gray, from white (0) to black (0xF)
8-bit: 216 color "Web-safe" palette, which includes all combinations of
red, green, and blue at these levels: 0x00, 0x33,
0x66, 0x99, 0xCC, and 0xFF.
Also, it includes all 16 gray shades at these levels: 0x00, 0x11, 0x22,
... 0xFF.
Finally, it includes these extra named HTML colors: 0xC0C0C0 (silver),
0x808080 (gray),
0x800000 (maroon), 0x800080 (purple), 0x008000 (green), and
0x008080 (teal).
The remaining 24 entries (indexes 0xE7 through
0xFE) are unspecified and filled with black. (On debug ROMs they
are filled with random colors to help developers notice if they
use an invalid value.) These entries may be defined by an
application.
Feel free to get back in case you need any further clarifications.
If you need some sample codes, you could visit Developer Nation at
http://www.devnation.net/codesamples/1161.cfm
Cheers,
Diwakar
---------------------------------------------------------
Developers' Nation
You've got the questions; we've got the answers.
Visit Us At :http://www.devnation.net for Palm Developer Support
----------------------------------------------------------
"Sridhar Nuthi" <[EMAIL PROTECTED]> wrote in message
news:49082@palm-dev-forum...
>
> Hi all,
> what is the system color table for a 8-bit windows bitmap and a 8-bit palm
> bitmap.
> thanks,
> sridhar
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/