Hi everyone!
if I use depth 24 then how i define the color since
(as i know) it no longer uses colortable?
I am using WinPalette for 256 color palette:
col = (RGBColorType*)malloc(sizeof(RGBColorType)
*256);
/* Set color palette to match BGR233 */
for (i = 0; i < 256; i++)
{
col[i].index = 0;
col[i].r = (((i >> 0) & 0x7) << 5) | (((i >> 0) &
0x7)<< 2) | (((i >> 0) & 0x7) >> 1);
col[i].g = (((i >> 3) & 0x7) << 5) | (((i >> 3) & 0x7)
<< 2) | (((i >> 3) & 0x7) >> 1);
col[i].b = (((i >> 6) & 0x3) << 6) | (((i >> 6) & 0x3)
<< 4) | (((i >> 6) & 0x3) << 2) | ((i >> 6) & 0x3);
}
/* allocate space for table */
e=WinPalette(winPaletteSet, 0, 256, col);
free(col);
but I want to draw images with depth=24.
how I make to draw images with 24 bits?
Please help. I really dont know what to do.
Marilia
_______________________________________________________
Yahoo! Acesso Gr�tis - navegue de gra�a com conex�o de qualidade!
http://br.acesso.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/