public interface ImageDecoder
BitmapRegionDecoder
based on the Skia library to be replaced with a custom class.Modifier and Type | Method and Description |
---|---|
android.graphics.Bitmap |
decode(android.content.Context context,
android.net.Uri uri)
Decode an image.
|
android.graphics.Bitmap decode(android.content.Context context, android.net.Uri uri) throws java.lang.Exception
context
- Application context. A reference may be held, but must be cleared on recycle.uri
- URI of the image.java.lang.Exception
- if initialisation fails.