-
- All Implemented Interfaces:
-
com.mobwith.imgmodule.load.Encoder,com.mobwith.imgmodule.load.ResourceEncoder
public class BitmapDrawableEncoder implements ResourceEncoder<BitmapDrawable>
Encodes BitmapDrawables.
-
-
Constructor Summary
Constructors Constructor Description BitmapDrawableEncoder(BitmapPool bitmapPool, ResourceEncoder<Bitmap> encoder)
-
Method Summary
Modifier and Type Method Description booleanencode(@NonNull() Resource<BitmapDrawable> data, @NonNull() File file, @NonNull() Options options)Writes the given data to the given output stream and returns True if the write completedsuccessfully and should be committed. EncodeStrategygetEncodeStrategy(@NonNull() Options options)-
-
Constructor Detail
-
BitmapDrawableEncoder
BitmapDrawableEncoder(BitmapPool bitmapPool, ResourceEncoder<Bitmap> encoder)
-
-
Method Detail
-
encode
boolean encode(@NonNull() Resource<BitmapDrawable> data, @NonNull() File file, @NonNull() Options options)
Writes the given data to the given output stream and returns True if the write completedsuccessfully and should be committed.
- Parameters:
data- The data to write.file- The file to write the data to.options- The set of options to apply when encoding.
-
getEncodeStrategy
@NonNull() EncodeStrategy getEncodeStrategy(@NonNull() Options options)
-
-
-
-