Sunday 8 September 2013

Get bitmap width and height is varing in same bitmap

Get bitmap width and height is varing in same bitmap

In my application, I need to find out exact dimensions of a bitmap in
pixels. The real dimension of the bitmap is 600x583. When I call
mBitmap.getWidth(); mBitmap.getHeight();
I get 300x292 as the dimensions of the bitmap.
After I again call that same bitmap with mBitmap.getWidth();
mBitmap.getHeight();
Then I get 240x233. Everytime the ratio is same. But it's not the correct
value. How can I overcome this issue?

No comments:

Post a Comment