public class SkiaImageDecoder extends java.lang.Object implements ImageDecoder
com.davemorrissey.labs.subscaleview.decoder.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.构造器和说明 |
---|
SkiaImageDecoder() |
public android.graphics.Bitmap decode(android.content.Context context, android.net.Uri uri) throws java.lang.Exception
ImageDecoder
decode
在接口中 ImageDecoder
context
- Application context. A reference may be held, but must be cleared on recycle.uri
- URI of the image.java.lang.Exception
- if initialisation fails.