public final class DrawableBytesTranscoder extends Object implements ResourceTranscoder<Drawable,byte[]>
Constructor and Description |
---|
DrawableBytesTranscoder(BitmapPool bitmapPool,
ResourceTranscoder<Bitmap,byte[]> bitmapBytesTranscoder,
ResourceTranscoder<GifDrawable,byte[]> gifDrawableBytesTranscoder) |
Modifier and Type | Method and Description |
---|---|
Resource<byte[]> |
transcode(Resource<Drawable> toTranscode,
Options options)
Transcodes the given resource to the new resource type and returns the new resource.
|
public DrawableBytesTranscoder(BitmapPool bitmapPool, ResourceTranscoder<Bitmap,byte[]> bitmapBytesTranscoder, ResourceTranscoder<GifDrawable,byte[]> gifDrawableBytesTranscoder)
@Nullable public Resource<byte[]> transcode(Resource<Drawable> toTranscode, Options options)
ResourceTranscoder
transcode
in interface ResourceTranscoder<Drawable,byte[]>
toTranscode
- The resource to transcode.