Android 用于解码图像的新类ImageDecoder有很多源类型。但不createSource(InputStream)包括在内。有一个类似的方法createSource(Resources res, InputStream is),但它是隐藏的(为什么?)。
现在我想使用 ImageDecoder 来解码一个,它是从一个就像InputStream打开的一样。ZipFile.getInputStream()BitmapFactory.decodeStream
所以:
- 为什么隐藏方法?
- 有没有其他选择,所以我可以
ImageDecoder使用InputStream?(因为我不想使用旧的BitmapFactory)