ok. you are certain and as I continued trying I
obtained to make something of this type:
RGBColorType* col;
UInt32 r, g, b;
UInt16 rgb565;
UInt32 * outRGB;
UInt8 *srcBitsP;
rgb565 = ((srcBitsP[0]) << 8) | (srcBitsP[1]);
r = ((rgb565 & 0xF800) >> 8) // 5 bits of red
|((rgb565 & 0x3800) >> 11);
g = ((rgb565 & 0x07E0) >> 3) // 6 bits of green
| ((rgb565 & 0x0060) >> 5);
b = ((rgb565 & 0x001F) << 3) // 5 bits of blue
| ((rgb565 & 0x0007));
*outRGB = (r << 16) | (g << 8) | (b);
col=(RGBColorType*)*outRGB;
WinSetForeColorRGB(NULL, col);
...
but I'm not sure what it is certain, same because he
did not function. Somebody has some example that can
show. I need to make this.
Debtor for the attention.
--- "Hays, Jonathan (GE Infrastructure)"
<[EMAIL PROTECTED]> escreveu:
> I'm not sure what you mean. For 16 bit images,
> there is no palette. Each pixel is a 565
> representation of the color data.
>
> -Jon
>
> -------------------------------------------
> Jonathan Hays
> Palm OS Certified Developer
> http://hazelware.luggle.com
> -------------------------------------------
>
>
_______________________________________________________
Yahoo! Messenger 6.0 - jogos, emoticons sonoros e muita divers�o. Instale agora!
http://br.download.yahoo.com/messenger/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/