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(@NonNull BitmapPool bitmapPool, @NonNull ResourceTranscoder<Bitmap,byte[]> bitmapBytesTranscoder, @NonNull ResourceTranscoder<GifDrawable,byte[]> gifDrawableBytesTranscoder)
@Nullable public Resource<byte[]> transcode(@NonNull Resource<Drawable> toTranscode, @NonNull Options options)
ResourceTranscoder
transcode
in interface ResourceTranscoder<Drawable,byte[]>
toTranscode
- The resource to transcode.