public final class DrawableBytesTranscoder extends Object implements ResourceTranscoder<Drawable,byte[]>
构造器和说明 |
---|
DrawableBytesTranscoder(BitmapPool bitmapPool,
ResourceTranscoder<Bitmap,byte[]> bitmapBytesTranscoder,
ResourceTranscoder<GifDrawable,byte[]> gifDrawableBytesTranscoder) |
public DrawableBytesTranscoder(@NonNull BitmapPool bitmapPool, @NonNull ResourceTranscoder<Bitmap,byte[]> bitmapBytesTranscoder, @NonNull ResourceTranscoder<GifDrawable,byte[]> gifDrawableBytesTranscoder)
@Nullable public Resource<byte[]> transcode(@NonNull Resource<Drawable> toTranscode, @NonNull Options options)
ResourceTranscoder
transcode
在接口中 ResourceTranscoder<Drawable,byte[]>
toTranscode
- The resource to transcode.