I have a an image image.png
in the drawable folder (not any of the other drawable-hdpi, etc. folders).
This image's size is 50x50
. But when I load it from my application like so:
BitmapFactory.decodeResource(getResources(), R.drawable.image)
and then I check the size with getWidth()
and getHeight()
, I get 150x150
.
Can anyone please explain how to calculate this 150x150
loaded size? (Not programmatically, I just want to know if there's a formula I could have used to tell that the image would be loaded to 150x150
)
Also, is this 150x150
in pixels?
Thanks!