How to calculate RAM usage of a image when decoded

1.7k views Asked by At

How do I can determine the ammount of RAM used by a image when loaded?

For standard I think that a image size on RAM will be width * height * PIXEL_FORMAT, where PIXEL_FORMAT will be RGB (3 bits) or ARGB (4 bits)

But for my calc, a 64*64(ARGB) image will have 2MB of memory usage, that I'm pretty sure is a wrong result.

Is a decoded image loaded as a compressed image and decompressed for drawing/drawed compressed through decompressers algorithms?

0

There are 0 answers