public static enum ResizeProcessor.Mode extends Enum<ResizeProcessor.Mode>
Enum Constant and Description |
---|
ASPECT_RATIO
Resize the image preserving aspect ratio
|
DOUBLE
Double the size of the image using bilinear interpolation
|
FIT
Resize the image to fit
|
HALF
Halve the size of the image, by sampling alternate pixels
|
MAX
Resize to so that the longest side is at most the given maximum.
|
MAX_AREA
Resize to so that the area is at most the given maximum.
|
NONE
Lazyness operator to allow the quick switching off of resize filters
|
SCALE
Scale the image using the given factors
|
Modifier and Type | Method and Description |
---|---|
static ResizeProcessor.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResizeProcessor.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResizeProcessor.Mode DOUBLE
public static final ResizeProcessor.Mode HALF
public static final ResizeProcessor.Mode SCALE
public static final ResizeProcessor.Mode ASPECT_RATIO
public static final ResizeProcessor.Mode FIT
public static final ResizeProcessor.Mode MAX
public static final ResizeProcessor.Mode MAX_AREA
public static final ResizeProcessor.Mode NONE
public static ResizeProcessor.Mode[] values()
for (ResizeProcessor.Mode c : ResizeProcessor.Mode.values()) System.out.println(c);
public static ResizeProcessor.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 nameNullPointerException
- if the argument is null