Class BitmapDrawableEncoder
java.lang.Object
com.bumptech.glide.load.resource.bitmap.BitmapDrawableEncoder
- All Implemented Interfaces:
Encoder<Resource<BitmapDrawable>>,ResourceEncoder<BitmapDrawable>
Encodes
BitmapDrawables.-
Constructor Summary
ConstructorsConstructorDescriptionBitmapDrawableEncoder(BitmapPool bitmapPool, ResourceEncoder<Bitmap> encoder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanencode(Resource<BitmapDrawable> data, 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.getEncodeStrategy(Options options)
-
Constructor Details
-
BitmapDrawableEncoder
-
-
Method Details
-
encode
public boolean encode(@NonNull Resource<BitmapDrawable> data, @NonNull 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.- Specified by:
encodein interfaceEncoder<Resource<BitmapDrawable>>- Parameters:
data- The data to write.file- The file to write the data to.options- The set of options to apply when encoding.
-
getEncodeStrategy
- Specified by:
getEncodeStrategyin interfaceResourceEncoder<BitmapDrawable>
-