|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.image.ImageTool
public class ImageTool
Contains util methods to work with images.
Constructor Summary | |
---|---|
ImageTool()
|
Method Summary | |
---|---|
static BufferedImage |
enlargeImage(BufferedImage image,
int zoom)
Increases image. |
static BufferedImage |
getImage()
Gets the whole screen image. |
static BufferedImage |
getImage(Component comp)
Gets an image from a component. |
static BufferedImage |
getImage(Rectangle rect)
Gets an image from a rectange on screen. |
static BufferedImage |
substractImage(BufferedImage minuend,
BufferedImage deduction)
Deprecated. Use subtractImage(BufferedImage, BufferedImage) instead. |
static BufferedImage |
substractImage(BufferedImage minuend,
BufferedImage deduction,
int relativeX,
int relativeY)
Deprecated. Use subtractImage(BufferedImage, BufferedImage, int, int) instead. |
static BufferedImage |
subtractImage(BufferedImage minuend,
BufferedImage deduction)
Subtracts second image from first one. |
static BufferedImage |
subtractImage(BufferedImage minuend,
BufferedImage deduction,
int relativeX,
int relativeY)
Subtracts subimage from image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageTool()
Method Detail |
---|
public static BufferedImage getImage(Rectangle rect)
rect
- a rectangle on screen in absolute screen coordinates.
public static BufferedImage getImage(Component comp)
comp
- a visible component.
public static BufferedImage getImage()
public static BufferedImage enlargeImage(BufferedImage image, int zoom)
image
- an image to enlarge.zoom
- A scale.
public static BufferedImage substractImage(BufferedImage minuend, BufferedImage deduction)
minuend
- an image to subtract from.deduction
- an image to subtract.
public static BufferedImage subtractImage(BufferedImage minuend, BufferedImage deduction)
minuend
- an image to subtract from.deduction
- an image to subtract.
public static BufferedImage substractImage(BufferedImage minuend, BufferedImage deduction, int relativeX, int relativeY)
minuend
- an image to subtract from.deduction
- an image to subtract.
public static BufferedImage subtractImage(BufferedImage minuend, BufferedImage deduction, int relativeX, int relativeY)
minuend
- an image to subtract from.deduction
- an image to subtract.relativeX
- - deduction-in-minuend X coordinaterelativeY
- - deduction-in-minuend Y coordinate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |