|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.netbeans.jemmy.image.StrictImageComparator
public class StrictImageComparator
Compares two images strictly (i.e. all the pixel colors should match).
| Constructor Summary | |
|---|---|
StrictImageComparator()
|
|
| Method Summary | |
|---|---|
boolean |
compare(java.awt.image.BufferedImage image1,
java.awt.image.BufferedImage image2)
Checks images sizes and pixels. |
protected boolean |
compareColors(int rgb1,
int rgb2)
Could be used to override the way of comparing colors. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StrictImageComparator()
| Method Detail |
|---|
public boolean compare(java.awt.image.BufferedImage image1,
java.awt.image.BufferedImage image2)
compare in interface ImageComparatorimage1 - 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||