This site is no longer active and is available for archival purposes only. Registration and login is disabled.

converting an 8 bit color into a 16 bit color


converting an 8 bit color into a 16 bit color

Postby R0B » Dec 10, 2001 @ 9:51pm

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.
"1011001010 NNNNNNNNNNOOOOOOOOOOOOOOOO!!!!!!" -Bender
User avatar
R0B
got muffins?
 
Posts: 1894
Joined: Jun 22, 2001 @ 12:04pm


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

Postby Digby » Dec 10, 2001 @ 10:46pm

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>
Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron