by MirekCz » Oct 24, 2001 @ 7:11am
katamine:if you use "real world images" RLE compression won't bring you anywhere. RLE compression is only good for "cartoon-like" images where you use several colors per image mostly. If you want compress "real world images" (ie scanned pictures) you can get good results with both zip and jpg (you lose quality with jpg thru, but get much better results for images where zip can't find any decent patterns) There are both free zip and jpg libraries to use. The only drawback is that you have to first unpack a jpg/zip into a buffer in mem before using it. So you end up using less disk space and the same mem space (and you have a longer loading time because you need to uncompress images)<br><br>Personally I'm going to use ZIP to compress all my pictures into one/few pack(s), which will be uncompressed during loading time. All tiles in memory will be kept in full 16bpp format without any kind of compression (well actually alpha-blended ones might end up with a kind of RLE compression of alpha channel) all other images will end exactly the same way (ie if it's transparent or has alpha-channel then alpha-channel is compressed with RLE, other pictures stay uncompressed)<br><br>Hope it helps you a bit:)
With best regards,
Mirek Czerwinski