Class BitmapBytesTranscoder
java.lang.Object
com.bumptech.glide.load.resource.transcode.BitmapBytesTranscoder
- All Implemented Interfaces:
ResourceTranscoder<Bitmap,byte[]>
An
ResourceTranscoder that converts Bitmaps into byte arrays using (android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream).-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BitmapBytesTranscoder
public BitmapBytesTranscoder() -
BitmapBytesTranscoder
-
-
Method Details
-
transcode
@Nullable public Resource<byte[]> transcode(@NonNull Resource<Bitmap> toTranscode, @NonNull Options options) Description copied from interface:ResourceTranscoderTranscodes the given resource to the new resource type and returns the new resource.- Specified by:
transcodein interfaceResourceTranscoder<Bitmap,byte[]> - Parameters:
toTranscode- The resource to transcode.
-