PocketMatrix forums

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

imgdecmp.dll

Does anyone know how to use this dll? I can't find any documatation to it.

Im writing a simple 2d graphics libary and I would like to use compressed images.

Thanks in advance.
Hi,

I once found this page to be pretty useful:

http://www.unsupportedsoftware.com/ce/dev/imgdecmp.htm

If you want to see a much better example of using the dll, check out PocketFrog's source code. It's a lot cleaner and easy to understand.

Be aware that this dll is only available on a PocketPC and not on Windows.

--Eric
Yeah, I found that page last night, after I posted, (the wonders of Google!)

Im only developing for the PocketPC, so thats not an issue, anyway i'll need to create a static lib to link to, am I right in thinking I would do that using LoadLibrary() and GetProcAddress()? I'd rather keep my interface clean and not use dll function pointers in my code.

Anyway, thanks for your help!
What you need to do is link with "imgdecmp.lib" which is installed with the PPC SDK, and include "imgdecmp.h". I'm not sure if the header file is included in the SDK or not however.

If it's not, you might want to check out MS, or get it from PocketFrog.

After that you can simply call the functions to decompress your images.

--Eric
Hi,

I don't know if it is applicable in your case, but this:

SHLoadImageFile

works on ppc2002 and wm2003 to load .jpgs, .bmps, .gifs, .pngs (without alpha), etc.