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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPrefer to round the sample size up so that the image is downsampled to smaller than the requested size to use less memory.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 Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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 nameNullPointerException- if the argument is null
-