-
- All Implemented Interfaces:
-
com.pdfview.subsamplincscaleimageview.decoder.ImageDecoder
public class SkiaImageDecoder implements ImageDecoder
Default implementation of ImageDecoder using Android's BitmapFactory, based on the Skia library. This works well in most circumstances and has reasonable performance, however it has some problems with grayscale, indexed and CMYK images.
-
-
Constructor Summary
Constructors Constructor Description SkiaImageDecoder()SkiaImageDecoder(Bitmap.Config bitmapConfig)
-
Method Summary
-
-
Constructor Detail
-
SkiaImageDecoder
SkiaImageDecoder()
-
SkiaImageDecoder
SkiaImageDecoder(Bitmap.Config bitmapConfig)
-
-
Method Detail
-
decode
@NonNull() Bitmap decode(Context context, @NonNull() Uri uri)
Decode an image. The URI can be in one of the following formats:File:
file:///scard/picture.jpgAsset:file:///android_asset/picture.pngResource:android.resource://com.example.app/drawable/picture- Parameters:
context- Application contexturi- URI of the image
-
-
-
-