Enum Class ImageComparator.Mode

All Implemented Interfaces:
Serializable, Comparable<ImageComparator.Mode>, Constable
Enclosing class:
ImageComparator

public static enum ImageComparator.Mode extends Enum<ImageComparator.Mode>
  • Enum Constant Details

    • IgnoreNothing

      public static final ImageComparator.Mode 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

      public static final ImageComparator.Mode 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

      public static final ImageComparator.Mode IgnoreColors
      Ignores the colors and compares only the brightness
  • Method Details

    • values

      public static ImageComparator.Mode[] 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

      public static ImageComparator.Mode valueOf(String name)
      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 name
      NullPointerException - if the argument is null