Interface ImageDecoder
-
- All Implemented Interfaces:
public interface ImageDecoder
Interface for image decoding classes, allowing the default based on the Skia library to be replaced with a custom class.
-
-
Method Summary
Modifier and Type Method Description abstract Bitmap
decode(Context context, Uri uri)
Decode an image. -
-
Method Detail
-
decode
abstract Bitmap decode(Context context, Uri uri)
Decode an image. When possible, initial setup work once in this method. This method must return the dimensions of the image. The URI can be in one of the following formats: File: file:///scard/picture.jpg Asset: file:///android_asset/picture.png Resource: android.resource://com.example.app/drawable/picture
- Parameters:
context
- Application context.uri
- URI of the image.- Returns:
Dimensions of the image.
-
-
-
-