|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bumptech.glide.GenericRequestBuilder<ModelType,ImageVideoWrapper,Bitmap,TranscodeType> com.bumptech.glide.BitmapRequestBuilder<ModelType,Bitmap> com.bumptech.glide.BitmapTypeRequest<ModelType>
ModelType
- The type of model to load the Bitmap
or transcoded class from.public class BitmapTypeRequest<ModelType>
A class for creating a load request that either loads an Bitmap
directly or that adds an
ResourceTranscoder
to transcode the Bitmap
into another
resource type.
Method Summary | ||
---|---|---|
BitmapRequestBuilder<ModelType,byte[]> |
toBytes()
Transcodes the decoded and transformed Bitmap to bytes by compressing it as a JPEG to a byte array. |
|
BitmapRequestBuilder<ModelType,byte[]> |
toBytes(Bitmap.CompressFormat compressFormat,
int quality)
Transcodes the decoded and transformed Bitmap to bytes by compressing it using the
given format and quality to a byte array. |
|
|
transcode(ResourceTranscoder<Bitmap,R> transcoder,
Class<R> transcodeClass)
Sets a transcoder to transcode the decoded and transformed Bitmap into another resource type. |
Methods inherited from class com.bumptech.glide.BitmapRequestBuilder |
---|
animate, animate, animate, approximate, asIs, atMost, cacheDecoder, centerCrop, decoder, diskCacheStrategy, dontAnimate, dontTransform, encoder, error, error, fitCenter, format, imageDecoder, into, listener, override, placeholder, placeholder, priority, sizeMultiplier, skipMemoryCache, sourceEncoder, thumbnail, thumbnail, thumbnail, transcoder, transform, transform, videoDecoder |
Methods inherited from class com.bumptech.glide.GenericRequestBuilder |
---|
into, into |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public <R> BitmapRequestBuilder<ModelType,R> transcode(ResourceTranscoder<Bitmap,R> transcoder, Class<R> transcodeClass)
Bitmap
into another resource type.
R
- The type of the resource the Bitmap
will be transcoded to.transcoder
- The transoder to use.transcodeClass
- The Class
of the resource the Bitmap
will be transcoded to.
public BitmapRequestBuilder<ModelType,byte[]> toBytes()
Bitmap
to bytes by compressing it as a JPEG to a byte array.
array.
toBytes(android.graphics.Bitmap.CompressFormat, int)
public BitmapRequestBuilder<ModelType,byte[]> toBytes(Bitmap.CompressFormat compressFormat, int quality)
Bitmap
to bytes by compressing it using the
given format and quality to a byte array.
compressFormat
- The Bitmap.CompressFormat
to use to compress the Bitmap
.quality
- The quality level from 0-100 to use to compress the Bitmap
.
Bitmap.compress(android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream)
,
toBytes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |