According to this answer here, it is possible to read an image height
and width
without loading the whole image into memory.
There is a sentence bit further down in the answer telling that
bitmap of approximately 512x384. Loading this into memory uses 0.75MB rather than 12MB for the full image (assuming a bitmap configuration of ARGB_8888).
My question is how you can calculate the image file size (or maybe I must say memory usage) of the image using the height
and width
like in the answer above. Also, what is this ARGB_8888
value or how to get it?