pawan nimje wrote:
> Hi i have a image in drawable folder and i need to get dimensions of that 
> image.
> 
> i tried BitmapFactory,getHeight etc but it is retunning me null

getResources().getDrawable().getIntrinsicHeight()

(or getMinimumHeight(), depending on what it is you are trying to do)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Online Training: 10-14 May 2010: http://onlc.com

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

Reply via email to