Package org.geotools.image.test
Enum Class ImageComparator.Mode
- All Implemented Interfaces:
Serializable
,Comparable<ImageComparator.Mode>
,Constable
- Enclosing class:
- ImageComparator
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSame as above, but if a pixel is found to be anti-aliased, only brightness will be compared, instead of the full color componentIgnores the colors and compares only the brightnessChecks if the images are equal taking into account the full color and all pixels. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageComparator.Mode
Returns the enum constant of this class with the specified name.static ImageComparator.Mode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IgnoreNothing
Checks if the images are equal taking into account the full color and all pixels. Some light difference between the two images is still being tolerated -
IgnoreAntialiasing
Same as above, but if a pixel is found to be anti-aliased, only brightness will be compared, instead of the full color component -
IgnoreColors
Ignores the colors and compares only the brightness
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-