|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.teamdev.jxcapture.image.operation.Capture
public class Capture
The class defines the functions that allow capturing a specified UI element (like desktop, active window or specific region on the screen).
Constructor Summary | |
---|---|
Capture()
|
Method Summary | |
---|---|
static void |
captureActiveWindow(CaptureListener captureListener)
Allows capturing a foreground window. |
static void |
captureDesktop(CaptureListener captureListener)
Allows making capture of the desktop. |
static void |
captureObject(CaptureListener captureListener)
Allows capturing a specified region on the screen. |
static void |
captureRegion(CaptureListener captureListener)
Allows capturing a specified region on the screen. |
static void |
captureScreenObject(CaptureListener captureListener)
Allows capturing a specified region on the screen. |
java.awt.image.BufferedImage |
createScreenCapture(java.awt.Rectangle screenRect)
Creates an image containing pixels read from the screen. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Capture()
Method Detail |
---|
public static void captureDesktop(CaptureListener captureListener)
com.teamdev.jxcapture.CaptureSettings
class.
The method uses the DesktopCapture
operation.
captureListener
- the listener that will be invoked when the
capture operation will be completed.public static void captureActiveWindow(CaptureListener captureListener)
com.teamdev.jxcapture.CaptureSettings
class.
The method uses the ActiveWindowCapture
operation.
captureListener
- the listener that will be invoked when the
capture operation will be completed.public static void captureRegion(CaptureListener captureListener)
com.teamdev.jxcapture.CaptureSettings
class.
The method uses the RegionCapture
operation.
For processing
the keyboard and mouse events, the RegionController
class is used .
captureListener
- the listener that will be invoked when the
capture operation will be completed.public static void captureScreenObject(CaptureListener captureListener)
com.teamdev.jxcapture.CaptureSettings
class.
The method uses the ScreenObjectCapture
operation.
For processing
the keyboard and mouse events, the ScreenObjectController
class is used.
captureListener
- the listener that will be invoked when the
capture operation will be completed.public static void captureObject(CaptureListener captureListener)
com.teamdev.jxcapture.CaptureSettings
class.
The method uses the ObjectCapture
operation.
captureListener
- the listener that will be invoked when the
capture operation will be completed.public 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 size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |