BitmapFactory.Options.outHeight / outWidth的单位

时间:2014-09-04 21:50:06

标签: android bitmap bitmapfactory android-bitmap

该文件未明确说明单位outHeightoutWidth是什么。

  

位图的结果高度,设置独立于状态   inJustDecodeBounds。但是,如果尝试解码时出错,   outHeight将设置为-1。

是以dp,像素还是英寸来衡量?

1 个答案:

答案 0 :(得分:2)

像素。位图大小以像素为单位进行测量。