public static enum DownsampleStrategy.SampleSizeRounding extends Enum<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
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.
|
限定符和类型 | 方法和说明 |
---|---|
static DownsampleStrategy.SampleSizeRounding |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static DownsampleStrategy.SampleSizeRounding[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DownsampleStrategy.SampleSizeRounding MEMORY
public static final DownsampleStrategy.SampleSizeRounding QUALITY
public static DownsampleStrategy.SampleSizeRounding[] values()
for (DownsampleStrategy.SampleSizeRounding c : DownsampleStrategy.SampleSizeRounding.values()) System.out.println(c);
public static DownsampleStrategy.SampleSizeRounding valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值