org.netbeans.jemmy.image
public class RoughImageFinder extends Object implements ImageFinder
Constructor and Description |
---|
RoughImageFinder(BufferedImage area,
double roughness)
Creates an instance allowing to find an image inside the one
passed as parameter with some "roughness".
|
public RoughImageFinder(BufferedImage area, double roughness)
area
- - Image to search in.roughness
- - Allowedpublic Point findImage(BufferedImage image, int index)
findImage
in interface ImageFinder
image
- an image to search.index
- an ordinal image location index.image1.getWidth() * image1.getHeight() * roughness