Class SkiaImageRegionDecoder
-
- All Implemented Interfaces:
public class SkiaImageRegionDecoder
Default 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 Point
init(Context context, Uri uri)
Bitmap
decodeRegion(Rect sRect, int sampleSize)
boolean
isReady()
void
recycle()
-
-
Method Detail
-
init
Point init(Context context, Uri uri)
-
decodeRegion
Bitmap decodeRegion(Rect sRect, int sampleSize)
-
isReady
boolean isReady()
-
recycle
void recycle()
-
-
-
-