Skip to content Skip to sidebar Skip to footer

How Do I Get The Raw Dimensions Of A Bitmap In An Imageview?

It seems like I might be overlooking something obvious, but I can't figure out how to retrieve the raw (unscaled) dimensions of a bitmap being displayed in an ImageView. For exampl

Solution 1:

You could use the getDrawable().getIntrinsicHeight() command, I think that would do the trick. See SDK documentation here.


Post a Comment for "How Do I Get The Raw Dimensions Of A Bitmap In An Imageview?"