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.
|
@Nullable public Resource<byte[]> transcode(@NonNull Resource<GifDrawable> toTranscode, @NonNull Options options)
ResourceTranscoder
transcode
in interface ResourceTranscoder<GifDrawable,byte[]>
toTranscode
- The resource to transcode.