|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Scalr.Method>
org.imgscalr.Scalr.Method
public static enum Scalr.Method
Used to define the different scaling hints that the algorithm can use.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
static Scalr.Method |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
).
Method Detail |
---|
public static Scalr.Method[] values()
for (Scalr.Method c : Scalr.Method.values()) System.out.println(c);
public static Scalr.Method valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
Copyright 2011 The Buzz Media, LLC | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |