Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unit for BitmapFactory.Options.outHeight/outWidth

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?

like image 551
Pierrew Avatar asked Apr 30 '26 01:04

Pierrew


1 Answers

Pixels. Bitmap sizes are measured in pixels.

like image 181
CommonsWare Avatar answered May 01 '26 15:05

CommonsWare



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!