Enum ImageComparator.Mode

    • Enum Constant Detail

      • 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 Detail

      • values

        public static ImageComparator.Mode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ImageComparator.Mode c : ImageComparator.Mode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ImageComparator.Mode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null