public static enum Resize.Mode extends java.lang.Enum<Resize.Mode>
| Enum Constant and Description |
|---|
EXACT
Resizes the input image exactly to the specified dimensions.
|
FILL
Resizes the input image while preserving the aspect ratio and making the
image at least as large as the specified dimensions.
|
FIT
Resizes the input image while preserving the aspect ratio and making the
image no larger than the specified dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
static Resize.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Resize.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Resize.Mode EXACT
public static final Resize.Mode FILL
public static final Resize.Mode FIT
public static Resize.Mode[] values()
for (Resize.Mode c : Resize.Mode.values()) System.out.println(c);
public static Resize.Mode 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