Class DrawableBytesTranscoder
- java.lang.Object
-
- com.bumptech.glide.load.resource.transcode.DrawableBytesTranscoder
-
- All Implemented Interfaces:
ResourceTranscoder<android.graphics.drawable.Drawable,byte[]>
public final class DrawableBytesTranscoder extends java.lang.Object implements ResourceTranscoder<android.graphics.drawable.Drawable,byte[]>
-
-
Constructor Summary
Constructors Constructor Description DrawableBytesTranscoder(BitmapPool bitmapPool, ResourceTranscoder<android.graphics.Bitmap,byte[]> bitmapBytesTranscoder, ResourceTranscoder<GifDrawable,byte[]> gifDrawableBytesTranscoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
DrawableBytesTranscoder
public DrawableBytesTranscoder(@NonNull BitmapPool bitmapPool, @NonNull ResourceTranscoder<android.graphics.Bitmap,byte[]> bitmapBytesTranscoder, @NonNull ResourceTranscoder<GifDrawable,byte[]> gifDrawableBytesTranscoder)
-
-
Method Detail
-
transcode
@Nullable public Resource<byte[]> transcode(@NonNull Resource<android.graphics.drawable.Drawable> toTranscode, @NonNull Options options)
Description copied from interface:ResourceTranscoderTranscodes the given resource to the new resource type and returns the new resource.- Specified by:
transcodein interfaceResourceTranscoder<android.graphics.drawable.Drawable,byte[]>- Parameters:
toTranscode- The resource to transcode.
-
-