# ImageRegionDecoder

public interface ImageRegionDecoder

Interface for image decoding classes, allowing the default based on the Skia library to be replaced with a custom class.

## Functions

decodeRegion
Link copied to clipboard
public abstract Bitmap decodeRegion(Rect sRect, int sampleSize)
Decode a region of the image with the given sample size.
init
Link copied to clipboard
public abstract Point init(Context context, Uri uri)
Initialise the decoder.
isReady
Link copied to clipboard
public abstract boolean isReady()
Status check.
recycle
Link copied to clipboard
public abstract void recycle()
This method will be called when the decoder is no longer required.