Android's new class for decode images, the ImageDecoder, has lots of source types. But not the createSource(InputStream)
included. There is a similar method createSource(Resources res, InputStream is)
, but it is hidden(why?).
Now I want to use ImageDecoder to decode an InputStream
, which is opened from a ZipFile.getInputStream()
just like BitmapFactory.decodeStream
does.
So:
- Why is the method hidden?
- Is there any alternative so I can use
ImageDecoder
with anInputStream
? (Cause I don't want to use the oldBitmapFactory
)