public static enum ResizeImageComparator.ResizeMode extends Enum<ResizeImageComparator.ResizeMode>
| Enum Constant and Description |
|---|
ARBITRARY_RESIZE
Images are always resized to match both width and height and then
compared.
|
NO_RESIZE
Images are never resized.
|
PROPORTIONAL_RESIZE
Images are resized only if they have exactly or almost proportional
sizes which is controlled by
proportionDistortion parameter. |
| Modifier and Type | Method and Description |
|---|---|
static ResizeImageComparator.ResizeMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResizeImageComparator.ResizeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResizeImageComparator.ResizeMode NO_RESIZE
public static final ResizeImageComparator.ResizeMode PROPORTIONAL_RESIZE
proportionDistortion parameter.
If images have different proportions no resize is done and original
images are compared.public static final ResizeImageComparator.ResizeMode ARBITRARY_RESIZE
public static ResizeImageComparator.ResizeMode[] values()
for (ResizeImageComparator.ResizeMode c : ResizeImageComparator.ResizeMode.values()) System.out.println(c);
public static ResizeImageComparator.ResizeMode 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 nullCopyright © 2018. All rights reserved.