public class BitmapDrawableEncoder extends Object implements ResourceEncoder<BitmapDrawable>
BitmapDrawable
s.构造器和说明 |
---|
BitmapDrawableEncoder(BitmapPool bitmapPool,
ResourceEncoder<Bitmap> encoder) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
encode(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.
|
EncodeStrategy |
getEncodeStrategy(Options options) |
public BitmapDrawableEncoder(BitmapPool bitmapPool, ResourceEncoder<Bitmap> encoder)
public boolean encode(@NonNull Resource<BitmapDrawable> data, @NonNull File file, @NonNull Options options)
Encoder
encode
在接口中 Encoder<Resource<BitmapDrawable>>
data
- The data to write.file
- The File to write the data to.options
- The put of options to apply when encoding.@NonNull public EncodeStrategy getEncodeStrategy(@NonNull Options options)
getEncodeStrategy
在接口中 ResourceEncoder<BitmapDrawable>