public class BitmapDrawableTranscoder extends Object implements ResourceTranscoder<Bitmap,BitmapDrawable>
Constructor and Description |
---|
BitmapDrawableTranscoder(Context context) |
BitmapDrawableTranscoder(Resources resources) |
BitmapDrawableTranscoder(Resources resources,
BitmapPool bitmapPool)
Deprecated.
Use
BitmapDrawableTranscoder(Resources) , bitmapPool is unused. |
Modifier and Type | Method and Description |
---|---|
Resource<BitmapDrawable> |
transcode(Resource<Bitmap> toTranscode,
Options options)
Transcodes the given resource to the new resource type and returns the new resource.
|
@Deprecated public BitmapDrawableTranscoder(@NonNull Resources resources, BitmapPool bitmapPool)
BitmapDrawableTranscoder(Resources)
, bitmapPool
is unused.public Resource<BitmapDrawable> transcode(Resource<Bitmap> toTranscode, Options options)
ResourceTranscoder
transcode
in interface ResourceTranscoder<Bitmap,BitmapDrawable>
toTranscode
- The resource to transcode.