Package 

Enum DecodeFormat

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Comparable

    
    public enum DecodeFormat
    
                        

    Options for setting the value of getConfig for s returned by com.mobwith.imgmodule.load.ResourceDecoders.

    Note - In some cases it may not be possible to obey the requested setting, not all s support setting formats and certain images may not be able to be loaded as certain configurations. Therefore this class represents a preference rather than a requirement.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static DecodeFormat DEFAULT
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      PREFER_ARGB_8888

      Bitmaps returned by the com.mobwith.imgmodule.load.ResourceDecoder. should return for getConfig whenpossible.

      On Android O+, this format will use ARGB_8888 only when it's not possible to use . More information is available about hardware Bitmapshere: https://goo.gl/tn2A6k. If you need to disable hardware Bitmaps for a particular request,use disallowHardwareConfig.

      GIF images decoded by android.graphics.BitmapFactory currently use an internalhidden format that is returned as null from getConfig. Sincewe cannot force android.graphics.BitmapFactory to always return our desired config,this setting is a preference, not a promise.

      PREFER_RGB_565

      Bitmaps decoded from image formats that support and/or use alpha (some types of PNGs, GIFs etc)should return ARGB_8888 for . Bitmaps decoded from formats that don't support or usealpha should return RGB_565 for .

      On Android O+, this format will use RGB_565 only when it's not possible to use .

    • Method Summary

      Modifier and Type Method Description
      static Array<DecodeFormat> values()
      static DecodeFormat valueOf(String name)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait