Why Bitmap size is bigger in memory than on disk in Android?

Viewed 6523

I have a 2448x3264 image on my SD card that consumes 1,667,072 bytes but when I load it as a Bitmap and calculate its size using getRowBytes()*getHeight() I end up with 15,980,544 bytes.

Why does this happen and how can I calculate the actual size of the file?

1 Answers
Related