public class BitmapBytesTranscoder extends java.lang.Object implements ResourceTranscoder<android.graphics.Bitmap,byte[]>
ResourceTranscoder
that converts Bitmap
s into byte arrays using (android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream)
.Constructor and Description |
---|
BitmapBytesTranscoder() |
BitmapBytesTranscoder(android.graphics.Bitmap.CompressFormat compressFormat,
int quality) |
Modifier and Type | Method and Description |
---|---|
Resource<byte[]> |
transcode(Resource<android.graphics.Bitmap> toTranscode,
Options options)
Transcodes the given resource to the new resource type and returns the new resource.
|
public BitmapBytesTranscoder()
public BitmapBytesTranscoder(@NonNull android.graphics.Bitmap.CompressFormat compressFormat, int quality)
@Nullable public Resource<byte[]> transcode(@NonNull Resource<android.graphics.Bitmap> toTranscode, @NonNull Options options)
ResourceTranscoder
transcode
in interface ResourceTranscoder<android.graphics.Bitmap,byte[]>
toTranscode
- The resource to transcode.