public static enum ImageUtils.ScalingStrategy extends Enum<ImageUtils.ScalingStrategy>
Enum Constant and Description |
---|
AUTO
Automatically determine the best strategy to get the nicest looking image in the least amount of time.
|
BEST_QUALITY
Do everything possible to make the scaled image exceptionally good, regardless of the processing time needed.
|
QUALITY
Create a nice scaled version of an image at the cost of more processing time.
|
SPEED
Scale as fast as possible.
|
SPEED_AND_QUALITY
|
Modifier and Type | Method and Description |
---|---|
static ImageUtils.ScalingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImageUtils.ScalingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageUtils.ScalingStrategy AUTO
public static final ImageUtils.ScalingStrategy SPEED
QUALITY
method.public static final ImageUtils.ScalingStrategy SPEED_AND_QUALITY
public static final ImageUtils.ScalingStrategy QUALITY
SPEED
strategy become less and less noticeable as the
source-image size increases.public static final ImageUtils.ScalingStrategy BEST_QUALITY
public static ImageUtils.ScalingStrategy[] values()
for (ImageUtils.ScalingStrategy c : ImageUtils.ScalingStrategy.values()) System.out.println(c);
public static ImageUtils.ScalingStrategy 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 nullCopyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.