The document doesn't say clearly what the unit outHeight and outWidth is.
The resulting height of the bitmap, set independent of the state of inJustDecodeBounds. However, if there is an error trying to decode, outHeight will be set to -1.
Is it measured in dp, pixel or inch?
Pixels. Bitmap sizes are measured in pixels.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With