|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectteamdev.jxdesktop.CaptureUtilities
A collection of utility methods for desktop.
Constructor Summary | |
protected |
CaptureUtilities()
|
Method Summary | |
abstract java.awt.image.BufferedImage |
createScreenCapture(java.awt.Rectangle screenRect)
Creates an image containing pixels read from the screen. |
abstract java.awt.image.BufferedImage |
createScreenCapture(UIElement element)
Creates an image containing pixels read from specified UIElement. |
abstract boolean |
createScreenCaptureAndSaveToFile(java.awt.Rectangle screenRect,
java.lang.String imageType,
java.io.File outputFile)
Creates an image containing pixels read from the screen and saves to a specified file in specified type. |
static CaptureUtilities |
getInstance()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected CaptureUtilities()
Method Detail |
public static CaptureUtilities getInstance()
public abstract java.awt.image.BufferedImage createScreenCapture(java.awt.Rectangle screenRect)
screenRect
- rect to capture in screen coordinates
java.lang.IllegalArgumentException
- if screenRect
width and height
are not greater than zero or more than screen sizepublic abstract java.awt.image.BufferedImage createScreenCapture(UIElement element)
element
- specified UIElement
public abstract boolean createScreenCaptureAndSaveToFile(java.awt.Rectangle screenRect, java.lang.String imageType, java.io.File outputFile)
screenRect
- rect to capture in screen coordinatesimageType
- type of image. Possible values: "PNG", "JPEG", "GIF" or "BMP"outputFile
- a file in which the image will be saved
TRUE
if operation successfully completed, othewise - FALSE
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |