Class BitmapDrawableEncoder
- java.lang.Object
-
- com.bumptech.glide.load.resource.bitmap.BitmapDrawableEncoder
-
- All Implemented Interfaces:
Encoder<Resource<android.graphics.drawable.BitmapDrawable>>,ResourceEncoder<android.graphics.drawable.BitmapDrawable>
public class BitmapDrawableEncoder extends java.lang.Object implements ResourceEncoder<android.graphics.drawable.BitmapDrawable>
EncodesBitmapDrawables.
-
-
Constructor Summary
Constructors Constructor Description BitmapDrawableEncoder(BitmapPool bitmapPool, ResourceEncoder<android.graphics.Bitmap> encoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanencode(Resource<android.graphics.drawable.BitmapDrawable> data, java.io.File file, Options options)Writes the given data to the given output stream and returns True if the write completed successfully and should be committed.EncodeStrategygetEncodeStrategy(Options options)
-
-
-
Constructor Detail
-
BitmapDrawableEncoder
public BitmapDrawableEncoder(BitmapPool bitmapPool, ResourceEncoder<android.graphics.Bitmap> encoder)
-
-
Method Detail
-
encode
public boolean encode(@NonNull Resource<android.graphics.drawable.BitmapDrawable> data, @NonNull java.io.File file, @NonNull Options options)Description copied from interface:EncoderWrites the given data to the given output stream and returns True if the write completed successfully and should be committed.
-
getEncodeStrategy
@NonNull public EncodeStrategy getEncodeStrategy(@NonNull Options options)
- Specified by:
getEncodeStrategyin interfaceResourceEncoder<android.graphics.drawable.BitmapDrawable>
-
-