PocketMatrix forums

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

loading BMP less than 8 BPP

Does GapiDraw support loading of less than 8 bit format? I'm trying to load a 16 color bitmap to use as a dithering mask, and the image loaded is all messed up.

Thanks
Hi,

GapiDraw should be able to read all bmp formats, including 4-bit images. Can you try and save your image in RLE format and see if it works?

/Johan
I was using RLE at first, and when I saw it didn't work I switched to uncompressed. Same result as soon as the image is less than 8 bit.

Here are two shots. First is the screenshot from the display with garbled image, second is the image:

http://www.techlogic.ca/aw/bad1.gif

http://www.techlogic.ca/aw/fog1.bmp

I'll continue to look at my code, but I don't do any fancy stuff. With 8 bits the result is correct.