Page 1 of 1

converting an 8 bit color into a 16 bit color

PostPosted: Dec 10, 2001 @ 9:51pm
by R0B
Hi, ok here is the sinario.  I have an 8-bit color stored in an int.  I would like to convert that into a 16-bit color to display on the screen.  I know this has to be really easy, but I can't seem to decide how to go about doing this accuratley. Thanks for your help.

Re: converting an 8 bit color into a 16 bit color

PostPosted: Dec 10, 2001 @ 10:46pm
by Digby
What's the format of the 8-bit color?  Is it a palette index, or perhaps 3-3-2?<br><br>BTW, an int on the Pocket PC is 32 bits.  Why are you wasting 24 bits to store 8-bpp?<br><br>