Skip to main content
Associate II
May 22, 2026
Question

Does Bitmap::cache() handle compressed images automatically?

  • May 22, 2026
  • 1 reply
  • 54 views

Hey,

I have my images stored compressed (ARGB8888) on NAND flash accessed via FileX. Not memory mapped, so I need to cache everything before starting the GUI.

I noticed this in the Bitmap API docs:

Bitmap::decompress — "This method is called by Bitmap::cache when required."

So does that mean I just implement BlockCopy with FileX, call Bitmap::cache(), and it handles the decompression automatically? Does it allocate for the uncompressed size and deal with the temp buffers internally?

Would save me a lot of headache if that's the case;

Thanks!

1 reply

Andrew Neil
Super User
May 22, 2026

Is this a TouchGFX question?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate II
May 22, 2026
Yes, forget to mention it
Andrew Neil
Super User
May 22, 2026

OK - moved it to the TouchGFX forum & added the label.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.