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