【发布时间】:2014-03-25 05:41:17
【问题描述】:
我正在尝试使用 BitmapFactory 解码位图,但它给我的输出位图的高度和宽度等于 0。可以帮帮我。我的代码如下。
Bitmap myBitmap = BitmapFactory.decodeByteArray(bFile, 0, bFile.length);
System.out.println("heigth => "myBitmap.getHeight() + " width => " + myBitmap.getWidth());
其中 bFile 是从 .ico 文件生成的字节数组。
提前致谢!!!
【问题讨论】:
-
看看这个问题和一组答案。 stackoverflow.com/questions/2690503/…我不完全确定 Android OS 本身是否支持 ico 文件
标签: java android android-layout bitmap android-bitmap