Class BitmapBytesTranscoder
- java.lang.Object
-
- com.bumptech.glide.load.resource.transcode.BitmapBytesTranscoder
-
- All Implemented Interfaces:
ResourceTranscoder<android.graphics.Bitmap,byte[]>
public class BitmapBytesTranscoder extends java.lang.Object implements ResourceTranscoder<android.graphics.Bitmap,byte[]>
AnResourceTranscoderthat convertsBitmaps into byte arrays using(android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream).
-
-
Constructor Summary
Constructors Constructor Description BitmapBytesTranscoder()BitmapBytesTranscoder(android.graphics.Bitmap.CompressFormat compressFormat, int quality)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
transcode
@Nullable public Resource<byte[]> transcode(@NonNull Resource<android.graphics.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<android.graphics.Bitmap,byte[]>- Parameters:
toTranscode- The resource to transcode.
-
-