Enum Class DownsampleStrategy.SampleSizeRounding

java.lang.Object
java.lang.Enum<DownsampleStrategy.SampleSizeRounding>
com.bumptech.glide.load.resource.bitmap.DownsampleStrategy.SampleSizeRounding
All Implemented Interfaces:
Serializable, Comparable<DownsampleStrategy.SampleSizeRounding>, java.lang.constant.Constable
Enclosing class:
DownsampleStrategy

public static enum DownsampleStrategy.SampleSizeRounding extends Enum<DownsampleStrategy.SampleSizeRounding>
Indicates whether to prefer to prefer downsampling or scaling to prefer lower memory usage or higher quality.
  • Enum Constant Details

    • MEMORY

      public static final DownsampleStrategy.SampleSizeRounding MEMORY
      Prefer to round the sample size up so that the image is downsampled to smaller than the requested size to use less memory.
    • QUALITY

      public static final DownsampleStrategy.SampleSizeRounding QUALITY
      Prefer to round the sample size down so that the image is downsampled to larger than the requested size to maintain quality at the expense of extra memory usage.
  • Method Details

    • values

      public static DownsampleStrategy.SampleSizeRounding[] 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 DownsampleStrategy.SampleSizeRounding 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