Bitmap byte-size after decoding?

Posted by need4sid on Stack Overflow See other posts from Stack Overflow or by need4sid
Published on 2010-03-09T08:30:41Z Indexed on 2010/03/09 8:36 UTC
Read the original article Hit count: 488

Filed under:
|

Hi!

How can I determine/calculate the byte size of a bitmap (after decoding with BitmapFactory)? I need to know how much memory space it occupies, because I'm doing memory caching/management in my app. (file size is not enough, since these are jpg/png files)

Thanks for any solutions!

© Stack Overflow or respective owner

Related posts about android

Related posts about bitmap