android不读入内存获取图像宽高信息的方法
时间:2021-05-15 09:06:26|栏目:Android代码|点击: 次
本文实例讲述了android不读入内存获取图像宽高信息的方法。分享给大家供大家参考。具体如下:
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
Bitmap bitmap = BitmapFactory.decodeFile("/sdcard/test.jpg", options);
int w = options.outWidth;
int h = options.outHeight;
希望本文所述对大家的Android程序设计有所帮助。
栏 目:Android代码
本文地址:http://www.codeinn.net/misctech/121902.html






