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