On 2012-09-19 08:34, Live Happy wrote:
what is the best way to get the size of bitmap image i know there is myBitmap.getByteCount() but this method is for api level 12 so it is there any other way to get it thx on advance
You can use the following instead: myBitmap.getRowBytes() * myBitmap.getHeight()

Both methods available in API Level 1 already. And this is exactly what getByteCound() does internally.

BR,
Przemek


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to