Vladan Markovic wrote: > Size of application i work on was about 500kb before i implement custom > palette, now it have about 700kb, after i add COLORTABLE flag for every > bitmap i have in RSC file. > > Is this normal thing when implementing custom palette, and is there some > solution for prevent the PRC file from growing after implementation of > custom palette.
Do you have a bunch of really small 8-bit images? The palette data can be as large as or even larger than the pixel data for small images. Each palette entry takes 2 bytes, so 256 palette entries (for an 8-bit image) takes 512 bytes. That's the same amount of storage as a 512-pixel 8-bit image (i.e. about 22 x 22 image size). Plus, palettes can't be compressed, whereas pixel data can be. So, if you have small images, it may actually be smaller to use 16-bit images instead. I'm pretty sure that virtually every device that supports 8-bit color also supports 16-bit color, so it shouldn't be a real compatibility problem to include 16-bit images instead of 8-bit ones. - Logan -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
