Jerome Chapdelaine wrote:
One question: do you have to use jpeg? If your bitmaps are not "real world photos" maybe you could switch to another format (png for example). Then perfect color keying is possible thanks to lossless compression. Or use an alpha channel in your png (but you will have to mask - blit yourself).

Zlib is available on palm for decompressing but I'm not sure about availability if png library. But if you control the PNG creation, then it is easy to write a png decoder.

Jerome



Hi Jerome,

I don't have to use jpeg, but jpeg is my best choice until now.

I don't have problem with the jpeg quality or the jpeg mask (at least on my case), the problem is how to store a r,g,b value into a resource.

take a look at the numbers (facts) per image:

320x320 16-bit image basis:

bmp: 155kB
png+zlib (your suggestion): 115kB
jpeg: 55kB

This is per image and I will use about 10 images, so this will save me 1 meg (compared to bmp) in my .prc file.

Also the jpeg I can decrease the quality if I want (I can't do that with the bmp) and the image size will shrink less of 35kB per image.

regards

Erico Franco

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to