Enum Class DecodeFormat

java.lang.Object
java.lang.Enum<DecodeFormat>
com.bumptech.glide.load.DecodeFormat
All Implemented Interfaces:
Serializable, Comparable<DecodeFormat>, java.lang.constant.Constable

public enum DecodeFormat extends Enum<DecodeFormat>
Options for setting the value of Bitmap.getConfig() for Bitmaps returned by ResourceDecoders.

Note - In some cases it may not be possible to obey the requested setting, not all Downsamplers 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.

  • Enum Constant Details

  • Field Details

    • DEFAULT

      public static final DecodeFormat DEFAULT
      The default value for DecodeFormat.
  • Method Details

    • values

      public static DecodeFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DecodeFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null