|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Scalr.Mode>
org.imgscalr.Scalr.Mode
public static enum Scalr.Mode
Used to define the different modes of resizing that the algorithm can use.
Enum Constant Summary | |
---|---|
AUTOMATIC
Used to indicate that the scaling implementation should calculate dimensions for the resultant image by looking at the image's orientation and generating proportional dimensions that best fit into the target width and height given See "Image Proportions" in the Scalr class description for
more detail. |
|
FIT_EXACT
Used to fit the image to the exact dimensions given regardless of the image's proportions. |
|
FIT_TO_HEIGHT
Used to indicate that the scaling implementation should calculate dimensions for the resultant image that best-fit within the given height, regardless of the orientation of the image. |
|
FIT_TO_WIDTH
Used to indicate that the scaling implementation should calculate dimensions for the resultant image that best-fit within the given width, regardless of the orientation of the image. |
Method Summary | |
---|---|
static Scalr.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Scalr.Mode[] |
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.Mode AUTOMATIC
Scalr
class description for
more detail.
public static final Scalr.Mode FIT_EXACT
FIT_TO
modes or AUTOMATIC
if you want the image to look
correct, but if dimension-fitting is the #1 priority regardless of
how it makes the image look, that is what this mode is for.
public static final Scalr.Mode FIT_TO_WIDTH
public static final Scalr.Mode FIT_TO_HEIGHT
Method Detail |
---|
public static Scalr.Mode[] values()
for (Scalr.Mode c : Scalr.Mode.values()) System.out.println(c);
public static Scalr.Mode 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 |