@Unstable(reason="needs more tests") public class CaptureSupportImpl extends Object implements CaptureSupport
Modifier and Type | Field and Description |
---|---|
static String |
PNG_IMAGE_FORMAT |
Constructor and Description |
---|
CaptureSupportImpl(BaseRobot baseRobot) |
Modifier and Type | Method and Description |
---|---|
Image |
annotateImage(Shape shape,
Image image) |
Image |
captureNode(Node node) |
Image |
captureRegion(Rectangle2D region) |
Image |
loadImage(Path path) |
PixelMatcherResult |
matchImages(Image image0,
Image image1,
PixelMatcher pixelMatcher) |
void |
saveImage(Image image,
Path path) |
public static final String PNG_IMAGE_FORMAT
public CaptureSupportImpl(BaseRobot baseRobot)
public Image captureNode(Node node)
captureNode
in interface CaptureSupport
public Image captureRegion(Rectangle2D region)
captureRegion
in interface CaptureSupport
public Image loadImage(Path path)
loadImage
in interface CaptureSupport
public void saveImage(Image image, Path path)
saveImage
in interface CaptureSupport
public Image annotateImage(Shape shape, Image image)
annotateImage
in interface CaptureSupport
public PixelMatcherResult matchImages(Image image0, Image image1, PixelMatcher pixelMatcher)
matchImages
in interface CaptureSupport