PocketMatrix forums

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

Loading problem with bitmap

Hello Johan,

I have a problem loading this bitmap using GapiDraw, but all paint programs I have read it correctly.

I get error 0xC8660070 which means the bitmap is invalid.

If I load it in PaintShop Pro (for example) and change it somehow, and save it back it will load fine, but not as it is.

I'm not sure if the problem is within the bitmap or GapiDraw, but I tought I would post it anyway.


Thanks!
Hi,

Basically there is a simple switch in the BMP reader than rejects 16-bit and 32-bit bitmap images (since they are not guaranteed to work on all Pocket PCs due to the built-in IMGDECMP.DLL).

The BMP loader currently supports 1, 4, 8, and 24-bit BMP images. Try saving your bitmap as 24-bit. My guess is that PaintShop pro always saves as a 24-bit bitmap after you changed it (which makes it work with GapiDraw), even if the source image was 32-bit.

Thanks for breaking the silence by the way.. Seems like everyone is away on vacation... :)

Oh. And a small tip. Remove your bitmap image from your web server as soon as possible. There are lots of companies located in countries without proper copyright laws scanning these pages...

/Johan
Thanks for the information. I assumed that 16 bits bitmaps were supported by GapiDraw.

The bitmap was generated by Borland C Builder. If I load it and save it right away from any paint package, it works.

If anyone has such problems, this is the cure.

I removed the bitmap from my server. Thanks for the tip ;)

Eric