DrawableBytesTranscoder

class DrawableBytesTranscoder : ResourceTranscoder<Z, R>

Obtains byte[] from BitmapDrawables by delegating to a ResourceTranscoder for Bitmaps to byte[]s.

Constructors

Link copied to clipboard
open fun DrawableBytesTranscoder(    bitmapPool: BitmapPool,     bitmapBytesTranscoder: ResourceTranscoder<Bitmap, Array<Byte>>,     gifDrawableBytesTranscoder: ResourceTranscoder<GifDrawable, Array<Byte>>)

Functions

Link copied to clipboard
open fun transcode(toTranscode: Resource<Drawable>, options: Options): Resource<Array<Byte>>
Transcodes the given resource to the new resource type and returns the new resource.