public class RobotScreenshotTaker extends java.lang.Object implements ScreenshotTaker
Robot.| Constructor and Description |
|---|
RobotScreenshotTaker() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFileExtension()
Returns the filename extension that should be used for images taken by this object.
|
java.awt.image.BufferedImage |
getImage(java.awt.Dimension size) |
java.awt.Dimension |
writeScreenshotTo(java.io.OutputStream outputStream)
Take a shot and write to the given output stream.
|
public java.awt.Dimension writeScreenshotTo(java.io.OutputStream outputStream)
throws java.io.IOException
ScreenshotTakerwriteScreenshotTo in interface ScreenshotTakerjava.io.IOException - if an I/O error occurs writing the screenshot to the streampublic java.awt.image.BufferedImage getImage(java.awt.Dimension size)
public java.lang.String getFileExtension()
ScreenshotTakergetFileExtension in interface ScreenshotTaker