android获取图片文件头信息
16lz
2021-01-23
/**
* 获取图片文件头信息
* @param in
* @return
*/
public static BitmapFactory.Options getImageOptions(InputStream in) {
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inJustDecodeBounds = true;
BitmapFactory.decodeStream(in, null, opts);
return opts;
}
* 获取图片文件头信息
* @param in
* @return
*/
public static BitmapFactory.Options getImageOptions(InputStream in) {
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inJustDecodeBounds = true;
BitmapFactory.decodeStream(in, null, opts);
return opts;
}
更多相关文章
- Android 异步加载图片(扩展后)
- android 图片的自由缩放和旋转
- android裁剪图片
- Android读写文件示例
- android左右滑动翻页查看图片
- Android内存缓存图片的标准方法
- Android根据不同语言切换图片
- Android 图片处理工具类汇总
- android 自由缩放图片