Class SkiaImageRegionDecoder
-
- All Implemented Interfaces:
public class SkiaImageRegionDecoderDefault implementation of ImageRegionDecoder using Android's BitmapRegionDecoder, based on the Skia library. This works well in most circumstances and has reasonable performance due to the cached decoder instance, however it has some problems with grayscale, indexed and CMYK images.
-
-
Constructor Summary
Constructors Constructor Description SkiaImageRegionDecoder()
-
Method Summary
Modifier and Type Method Description Pointinit(Context context, Uri uri)BitmapdecodeRegion(Rect sRect, int sampleSize)booleanisReady()voidrecycle()-
-
Method Detail
-
init
Point init(Context context, Uri uri)
-
decodeRegion
Bitmap decodeRegion(Rect sRect, int sampleSize)
-
isReady
boolean isReady()
-
recycle
void recycle()
-
-
-
-