【问题标题】:How to decode large image in android in such a way that decode process should reduce image size? [closed]如何以解码过程应该减小图像大小的方式在android中解码大图像? [关闭]
【发布时间】:2013-02-23 17:24:36
【问题描述】:

如何在android中解码大图像以使解码过程减小图像大小?

使用的代码:

Bitmap bmp= BitmapFactory.decodeStream(MainActivity.this.getAssets().open("index.png"));

【问题讨论】:

  • 位图 bmp= BitmapFactory.decodeStream(MainActivity.this.getAssets().open("index.png"));

标签: android performance bitmap drawable decode


【解决方案1】:

检查一下,可能会有帮助

尝试使用 BitmapFactory.Options 解码图像

查看以下链接了解更多详情

http://android-coding.blogspot.in/2011/06/reduce-bitmap-size-using.html

谢谢。

【讨论】:

  • 效果很好。 @mitesh:谢谢
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-05-08
  • 1970-01-01
  • 2021-01-10
  • 2020-06-14
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多