public class ScreenImage extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
_filename |
protected BufferedImage |
_img |
protected Rectangle |
_roi |
int |
h
x, y, w, h of the stored ROI
|
int |
w
x, y, w, h of the stored ROI
|
int |
x
x, y, w, h of the stored ROI
|
int |
y
x, y, w, h of the stored ROI
|
| Constructor and Description |
|---|
ScreenImage(Rectangle roi,
BufferedImage img)
create ScreenImage with given
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFile()
stores the image as PNG file in the standard temp folder
with a created filename (sikuli-image-#unique-random#.png)
if not yet stored before
|
String |
getFile(String path)
stores the image as PNG file in the given path
with a created filename (sikuli-image-#unique-random#.png)
|
String |
getFile(String path,
String name)
stores the image as PNG file in the given path
with the given filename
|
String |
getFilename()
Deprecated.
use getFile() instead
|
BufferedImage |
getImage() |
Rectangle |
getROI() |
public int x
public int y
public int w
public int h
protected Rectangle _roi
protected BufferedImage _img
protected String _filename
public ScreenImage(Rectangle roi, BufferedImage img)
roi - the rectangle it was taken fromimg - the BufferedImage@Deprecated public String getFilename() throws IOException
IOExceptionpublic String getFile()
IOExceptionpublic String getFile(String path)
path - valid path stringIOExceptionpublic String getFile(String path, String name)
path - valid path stringname - filename (.png is added if not present)IOExceptionpublic BufferedImage getImage()
public Rectangle getROI()