public static enum Scalr.Method extends java.lang.Enum<Scalr.Method>
Enum Constant and Description |
---|
AUTOMATIC
Used to indicate that the scaling implementation should decide which
method to use in order to get the best looking scaled image in the
least amount of time.
|
BALANCED
Used to indicate that the scaling implementation should use a scaling
operation balanced between SPEED and QUALITY.
|
QUALITY
Used to indicate that the scaling implementation should do everything
it can to create as nice of a result as possible.
|
SPEED
Used to indicate that the scaling implementation should scale as fast
as possible and return a result.
|
ULTRA_QUALITY
Used to indicate that the scaling implementation should go above and
beyond the work done by
QUALITY to make the image look
exceptionally good at the cost of more processing time. |
Modifier and Type | Method and Description |
---|---|
static Scalr.Method |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Scalr.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scalr.Method AUTOMATIC
Scalr.THRESHOLD_QUALITY_BALANCED
or
Scalr.THRESHOLD_BALANCED_SPEED
thresholds as cut-offs to
decide between selecting the QUALITY
,
BALANCED
or SPEED
scaling algorithms.
By default the thresholds chosen will give nearly the best looking
result in the fastest amount of time. We intend this method to work
for 80% of people looking to scale an image quickly and get a good
looking result.public static final Scalr.Method SPEED
public static final Scalr.Method BALANCED
public static final Scalr.Method QUALITY
public static final Scalr.Method ULTRA_QUALITY
QUALITY
to make the image look
exceptionally good at the cost of more processing time. This is
especially evident when generating thumbnails of images that look
jagged with some of the other Scalr.Method
s (even
QUALITY
).public static Scalr.Method[] values()
for (Scalr.Method c : Scalr.Method.values()) System.out.println(c);
public static Scalr.Method valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null