public class SkiaImageDecoder extends Object implements ImageDecoder
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 and Description |
---|
SkiaImageDecoder() |
SkiaImageDecoder(Bitmap.Config bitmapConfig) |
public SkiaImageDecoder()
public SkiaImageDecoder(Bitmap.Config bitmapConfig)
public Bitmap decode(Context context, Uri uri) throws Exception
ImageDecoder
file:///scard/picture.jpg
file:///android_asset/picture.png
android.resource://com.example.app/drawable/picture
decode
in interface ImageDecoder
context
- Application contexturi
- URI of the imageException
- if decoding fails.