Class DrawableBytesTranscoder
java.lang.Object
com.bumptech.glide.load.resource.transcode.DrawableBytesTranscoder
- All Implemented Interfaces:
ResourceTranscoder<Drawable,byte[]>
public final class DrawableBytesTranscoder
extends Object
implements ResourceTranscoder<Drawable,byte[]>
-
Constructor Summary
ConstructorsConstructorDescriptionDrawableBytesTranscoder(BitmapPool bitmapPool, ResourceTranscoder<Bitmap, byte[]> bitmapBytesTranscoder, ResourceTranscoder<GifDrawable, byte[]> gifDrawableBytesTranscoder) -
Method Summary
-
Constructor Details
-
DrawableBytesTranscoder
public DrawableBytesTranscoder(@NonNull BitmapPool bitmapPool, @NonNull ResourceTranscoder<Bitmap, byte[]> bitmapBytesTranscoder, @NonNull ResourceTranscoder<GifDrawable, byte[]> gifDrawableBytesTranscoder)
-
-
Method Details
-
transcode
@Nullable public Resource<byte[]> transcode(@NonNull Resource<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<Drawable,byte[]> - Parameters:
toTranscode- The resource to transcode.
-