public abstract class VectorDecoder extends Decoder
Decoder.SOURCE
ENABLE_HARD_CACHE, resourceId, sourceType
Constructor and Description |
---|
VectorDecoder(android.content.res.Resources resources,
int resourceId) |
VectorDecoder(android.content.res.Resources resources,
android.net.Uri uri) |
Modifier and Type | Method and Description |
---|---|
protected MultiRect |
calculateImageSlice(android.graphics.RectF bounds,
android.graphics.RectF region) |
protected abstract android.graphics.Bitmap |
decodeAsBitmap(int boundsWidth,
int boundsHeight,
android.graphics.RectF slice,
DrawableState state) |
android.graphics.Bitmap |
getBitmap(int boundsWidth,
int boundsHeight,
boolean fitIntoBounds,
DrawableState state) |
android.graphics.Bitmap |
getBitmap(android.graphics.RectF bounds,
android.graphics.RectF region) |
boolean |
isVector() |
createCache, decodeSize, fallbackCrop, finalize, getDrawable, getInputStream, getInputStream, getResources, getSize, getUncachedInputStream, getUri, isStateful, recycle, resourceToUri
@AnyThread public VectorDecoder(@NonNull android.content.res.Resources resources, int resourceId)
@AnyThread public VectorDecoder(@NonNull android.content.res.Resources resources, @NonNull android.net.Uri uri)
@Nullable @WorkerThread protected abstract android.graphics.Bitmap decodeAsBitmap(int boundsWidth, int boundsHeight, @Nullable android.graphics.RectF slice, @Nullable DrawableState state)
@Nullable @WorkerThread public android.graphics.Bitmap getBitmap(int boundsWidth, int boundsHeight, boolean fitIntoBounds, @Nullable DrawableState state)
@Nullable @WorkerThread public android.graphics.Bitmap getBitmap(@NonNull android.graphics.RectF bounds, @NonNull android.graphics.RectF region)
@AnyThread protected MultiRect calculateImageSlice(@NonNull android.graphics.RectF bounds, @NonNull android.graphics.RectF region)