public static enum DownsampleStrategy.SampleSizeRounding extends Enum<DownsampleStrategy.SampleSizeRounding>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
static DownsampleStrategy.SampleSizeRounding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DownsampleStrategy.SampleSizeRounding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null