zlib?

Posted:
Sep 21, 2002 @ 7:43am
by draklava
Any plans to support zlib for compressing surface images? It cuts bitmap sizes in half
also - does PF expect Bitmap files to be a particular color depth (24 vs. 16 or 8?)

Posted:
Sep 21, 2002 @ 8:14am
by Kzinti
Zlib is compatible with PocketFrog, feel free to use it. I am unsure what you mean by "Zlib support in PocketFrog".
If you want to load a zlib compressed image, you have to first decompress the file in a memory buffer (using Zlib) and then use PocketFrog to decode the image (function LoadImage()).
Concerning the bit depth, PocketFrog uses the imgdecmp.dll file to decompress images. Any format supported by Pocket IE is thus supported (bmp, jpg, gif and png). You might experience problems with 16 bits DIB .BMP files on Casio devices though. In that case, you should use the shell API (SHLoadImage).