PocketMatrix forums

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

Should RLE support be added again?

Hi,

As some of you have already noticed the RLE support for BMPs was removed in GapiDraw 1.02. The main reason for removing it was that it had some issues with 4-bit BMPs on some systems.

To port the current graphics to PNG for example, you could use a Photoshop script to batch convert all your current images in a couple of seconds. Then just edit the resource file ".rc" and move all BMPs to another section called "PNG" (and search/replace for .BMP to change into .PNG). Finally just search for all CreateSurface() calls and add TEXT("PNG") as a parameter). No matter how many BMPs you use the entire process should take less than 5-10 minutes. And the resulting file size will be considerably less.

Please let me know if you need RLE support back again, because it would be trivial to re-add it (of course the routines would have to be checked so that they support 4-bit bitmaps, but now when 1.02 is out I have the time to do it).

/Johan
As I am doing a SMIL Player, I would appreciate the RLE encoding to be in GapiDraw again. In fact, our application should be compatible with the most picture standard, because we don't know which image format the SMIL authors will use in their presentations.

jul'
I think it should be re-added again, I think it is always a good idea to try to retain backwards compatibility as much as possible. It might not be much effort to replace all bmps in code with png's or something like that, but if you have a game that's already released for which you would want to release an update, you should now also deliver new graphics to the customers, whereas this wouldn't be necessary if you would have backwards-compatible rle support, if you had used such files. So if it isn't too much trouble, please do.
I'd have to agree with jasjenl. Although I won't touch BMPs with a 10 foot pole, a good number of developers still like to use them.
Thanks for the feedback.

I'll re-add RLE-BMP this weekend and release 1.03 on Monday. Please report back all issues you can find until then.