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() |
Modifier and Type | Method and Description |
---|---|
Resource<byte[]> |
transcode(Resource<GifDrawable> toTranscode,
Options options)
Transcodes the given resource to the new resource type and returns the new resource.
|
public Resource<byte[]> transcode(Resource<GifDrawable> toTranscode, Options options)
ResourceTranscoder
transcode
in interface ResourceTranscoder<GifDrawable,byte[]>
toTranscode
- The resource to transcode.