public class AWTImage extends Object implements Image, WriteableRaster
Raster.Component| Modifier and Type | Field and Description |
|---|---|
static String |
OUTPUT |
static String |
PNG_FILE |
| Constructor and Description |
|---|
AWTImage(BufferedImage img) |
| Modifier and Type | Method and Description |
|---|---|
Image |
compareTo(Image img)
Compares using current comparator.
|
void |
getColors(int x,
int y,
double[] colors) |
static ImageComparator |
getComparator()
Gets comparator to be used by default.
|
static File |
getImageRoot()
Get the value of imageRoot.
|
Dimension |
getSize() |
Raster.Component[] |
getSupported() |
BufferedImage |
getTheImage() |
void |
save(String fileName)
Saves to a filesystem. fileName is expected to be a full path, unless
imageRoot is specified. ".png" extension is added automatically if not
specified.
|
void |
setColors(int x,
int y,
double[] colors) |
static void |
setComparator(ImageComparator comparator)
Sets comparator to be used by default.
|
static void |
setImageRoot(File imageRoot)
Set the value of imageRoot.
|
public static final String OUTPUT
public static final String PNG_FILE
public AWTImage(BufferedImage img)
public static File getImageRoot()
public static void setImageRoot(File imageRoot)
imageRoot - new value of imageRootpublic static ImageComparator getComparator()
Wrap.waitImage(org.jemmy.image.Image, java.lang.String,
java.lang.String),
ImageComparatorpublic static void setComparator(ImageComparator comparator)
comparator - todo documentWrap.waitImage(org.jemmy.image.Image, java.lang.String,
java.lang.String),
ImageComparatorpublic BufferedImage getTheImage()
public Image compareTo(Image img)
compareTo in interface Imageimg - todo documentgetComparator()public void save(String fileName)
save in interface ImagefileName - full or relative file namegetImageRoot()public void getColors(int x,
int y,
double[] colors)
public void setColors(int x,
int y,
double[] colors)
setColors in interface WriteableRasterpublic Raster.Component[] getSupported()
getSupported in interface RasterCopyright © 2018. All rights reserved.