PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

zlib?

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?)
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).
draklava · 21 Sep 2002, 15:25 UTC — a ha
Sorry - I'm coming from the EasyCE world where the loadimage functions makes the zlib stuff transparent. It's just as easy to uncompress myself and then load the image as you've stated above...

thanks!

I'm pretty far along in a game using EasyCE and am having some issues that I can't quite figure out.

I'd love to switch to PF but don't know if that's going to be a possibility without totally re-engineering my app...

If I can figure out a good bridge between EasyCE ASprite class and PF I should be able to knock out about 80% of the work

anyway... PF look great! I'll definitely be using it for my next project