Class GifDrawableBytesTranscoder
- java.lang.Object
-
- com.bumptech.glide.load.resource.transcode.GifDrawableBytesTranscoder
-
- All Implemented Interfaces:
ResourceTranscoder<GifDrawable,byte[]>
public class GifDrawableBytesTranscoder extends java.lang.Object implements ResourceTranscoder<GifDrawable,byte[]>
AnResourceTranscoderthat convertsGifDrawableinto bytes by obtaining the original bytes of the GIF from theGifDrawable.
-
-
Constructor Summary
Constructors Constructor Description GifDrawableBytesTranscoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resource<byte[]>transcode(Resource<GifDrawable> toTranscode, Options options)Transcodes the given resource to the new resource type and returns the new resource.
-
-
-
Method Detail
-
transcode
@Nullable public Resource<byte[]> transcode(@NonNull Resource<GifDrawable> 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<GifDrawable,byte[]>- Parameters:
toTranscode- The resource to transcode.
-
-