public class NullDecoder extends Decoder
Decoder.SOURCE
resourceId, sourceType
Constructor and Description |
---|
NullDecoder(Resources resources,
int resourceId) |
NullDecoder(Resources resources,
Uri uri) |
Modifier and Type | Method and Description |
---|---|
protected ImageSize |
decodeSize() |
Bitmap |
getBitmap(int boundsWidth,
int boundsHeight,
boolean fitIntoBounds,
DrawableState state) |
Bitmap |
getBitmap(RectF bounds,
RectF region) |
Drawable |
getDrawable() |
boolean |
isVector() |
createCache, fallbackCrop, finalize, getInputStream, getInputStream, getPath, getResources, getSize, getUri, isStateful, recycle, resourceToUri
public NullDecoder(@NonNull Resources resources, int resourceId)
public NullDecoder(@NonNull Resources resources, @NonNull Uri uri)
@NonNull protected ImageSize decodeSize()
decodeSize
in class Decoder
@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)
public Drawable getDrawable()
getDrawable
in class Decoder