public class GifDrawableBytesTranscoder extends Object implements ResourceTranscoder<GifDrawable,byte[]>
ResourceTranscoder
that converts
GifDrawable
into bytes by obtaining the original bytes of the GIF from
the GifDrawable
.Constructor and Description |
---|
GifDrawableBytesTranscoder() |
public Resource<byte[]> transcode(Resource<GifDrawable> toTranscode)
ResourceTranscoder
transcode
in interface ResourceTranscoder<GifDrawable,byte[]>
toTranscode
- The resource to transcode.public String getId()
getId
in interface ResourceTranscoder<GifDrawable,byte[]>