| java.lang.Object org.netbeans.jemmy.image.StrictImageComparator
All known Subclasses: org.netbeans.jemmy.image.ColorImageComparator,
StrictImageComparator | public class StrictImageComparator implements ImageComparator(Code) | | Compares two images strictly (i.e. all the pixel colors should match).
author: Alexandre Iline (alexandre.iline@sun.com) |
Method Summary | |
public boolean | compare(BufferedImage image1, BufferedImage image2) Checks images sizes and pixels.
Compares one pixel after another untill one will be different.
Parameters: image1 - an image to compare. Parameters: image2 - an image to compare. | protected boolean | compareColors(int rgb1, int rgb2) Could be used to override the way of comparing colors.
Parameters: rgb1 - a color to compare. Parameters: rgb2 - a color to compare. |
compare | public boolean compare(BufferedImage image1, BufferedImage image2)(Code) | | Checks images sizes and pixels.
Compares one pixel after another untill one will be different.
Parameters: image1 - an image to compare. Parameters: image2 - an image to compare. True if all the pixels match, false otherwise. |
compareColors | protected boolean compareColors(int rgb1, int rgb2)(Code) | | Could be used to override the way of comparing colors.
Parameters: rgb1 - a color to compare. Parameters: rgb2 - a color to compare. true if colors are equal. |
|
|