public class StrictImageComparator extends Object implements ImageComparator
Constructor and Description |
---|
StrictImageComparator() |
Modifier and Type | Method and Description |
---|---|
boolean |
compare(BufferedImage image1,
BufferedImage image2)
Checks images sizes and pixels.
|
protected boolean |
compareColors(int rgb1,
int rgb2)
Could be used to override the way of comparing colors.
|
public boolean compare(BufferedImage image1, BufferedImage image2)
compare
in interface ImageComparator
image1
- an image to compare.image2
- an image to compare.protected boolean compareColors(int rgb1, int rgb2)
rgb1
- a color to compare.rgb2
- a color to compare.