public class NativeSupportedDecoder extends RasterDecoder
Decoder.SOURCE
resourceId, sourceType
Constructor and Description |
---|
NativeSupportedDecoder(Resources resources,
int resourceId) |
NativeSupportedDecoder(Resources resources,
Uri uri) |
Modifier and Type | Method and Description |
---|---|
Bitmap |
decodeAsBitmap(MultiRect slice,
int sampleSize) |
ImageSize |
decodeSize() |
Drawable |
getDrawable() |
calculateExactSample, calculateImageSlice, getBitmap, getBitmap, isVector
createCache, fallbackCrop, finalize, getInputStream, getInputStream, getPath, getResources, getSize, getUri, isStateful, recycle, resourceToUri
public NativeSupportedDecoder(Resources resources, int resourceId)
public NativeSupportedDecoder(Resources resources, Uri uri)
@Nullable @WorkerThread public Bitmap decodeAsBitmap(@Nullable MultiRect slice, int sampleSize)
decodeAsBitmap
in class RasterDecoder
@WorkerThread public ImageSize decodeSize()
decodeSize
in class Decoder
public Drawable getDrawable()
getDrawable
in class Decoder