Class 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>
    Encodes BitmapDrawables.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean encode​(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.
      EncodeStrategy getEncodeStrategy​(Options options)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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: Encoder
        Writes the given data to the given output stream and returns True if the write completed successfully and should be committed.
        Specified by:
        encode in interface Encoder<Resource<android.graphics.drawable.BitmapDrawable>>
        Parameters:
        data - The data to write.
        file - The file to write the data to.
        options - The set of options to apply when encoding.