com.bumptech.glide.load.resource.transcode
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
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GifDrawableBytesTranscoder
public GifDrawableBytesTranscoder()
transcode
public Resource<byte[]> transcode(Resource<GifDrawable> toTranscode)
- Description copied from interface:
ResourceTranscoder
- Transcodes the given resource to the new resource type and returns the wew resource.
- Specified by:
transcode
in interface ResourceTranscoder<GifDrawable,byte[]>
- Parameters:
toTranscode
- The resource to transcode.
getId
public String getId()
- Specified by:
getId
in interface ResourceTranscoder<GifDrawable,byte[]>