public final class DrawableBytesTranscoder extends java.lang.Object implements ResourceTranscoder<android.graphics.drawable.Drawable,byte[]>
| Constructor and Description |
|---|
DrawableBytesTranscoder(BitmapPool bitmapPool,
ResourceTranscoder<android.graphics.Bitmap,byte[]> bitmapBytesTranscoder,
ResourceTranscoder<GifDrawable,byte[]> gifDrawableBytesTranscoder) |
| Modifier and Type | Method and Description |
|---|---|
Resource<byte[]> |
transcode(Resource<android.graphics.drawable.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<android.graphics.Bitmap,byte[]> bitmapBytesTranscoder,
@NonNull
ResourceTranscoder<GifDrawable,byte[]> gifDrawableBytesTranscoder)
@Nullable public Resource<byte[]> transcode(@NonNull Resource<android.graphics.drawable.Drawable> toTranscode, @NonNull Options options)
ResourceTranscodertranscode in interface ResourceTranscoder<android.graphics.drawable.Drawable,byte[]>toTranscode - The resource to transcode.