Class GifDrawableBytesTranscoder
java.lang.Object
com.bumptech.glide.load.resource.transcode.GifDrawableBytesTranscoder
- All Implemented Interfaces:
ResourceTranscoder<GifDrawable,byte[]>
public class GifDrawableBytesTranscoder
extends Object
implements ResourceTranscoder<GifDrawable,byte[]>
An
ResourceTranscoder that converts GifDrawable into bytes by obtaining the original bytes of
the GIF from the GifDrawable.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResource<byte[]>transcode(Resource<GifDrawable> toTranscode, Options options) Transcodes the given resource to the new resource type and returns the new resource.
-
Constructor Details
-
GifDrawableBytesTranscoder
public GifDrawableBytesTranscoder()
-
-
Method Details
-
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.
-