public class DesktopInteractImpl extends java.lang.Object implements DesktopInteract
Robot
Constructor and Description |
---|
DesktopInteractImpl()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
captureScreen()
Capture the full desktop screen using java.awt.Robot.
|
boolean |
captureScreen(int display,
byte[] output)
Capture the full desktop screen using native grabber.
|
java.awt.image.BufferedImage |
captureScreen(int x,
int y,
int width,
int height)
Capture a part of the desktop screen using java.awt.Robot.
|
boolean |
captureScreen(int display,
int x,
int y,
int width,
int height,
byte[] output)
Capture a part of the desktop screen using native grabber.
|
boolean |
captureScreen(int display,
int x,
int y,
int width,
int height,
long buffer,
int bufferLength)
Capture a part of the desktop screen using native grabber.
|
boolean |
captureScreen(int display,
long buffer,
int bufferLength)
Capture the full desktop screen using native grabber.
|
public DesktopInteractImpl() throws java.awt.AWTException, java.lang.SecurityException
java.awt.AWTException
- if platform configuration does not allow low-level
input controljava.lang.SecurityException
- if Robot creation is not permittedpublic boolean captureScreen(int display, byte[] output)
captureScreen
in interface DesktopInteract
display
- index of displayoutput
- output buffer to store bytes in.
Be sure that output length is sufficientpublic boolean captureScreen(int display, long buffer, int bufferLength)
captureScreen
in interface DesktopInteract
display
- index of displaybuffer
- native output buffer to store bytes in.
Be sure that output length is sufficientbufferLength
- length of native bufferpublic boolean captureScreen(int display, int x, int y, int width, int height, byte[] output)
captureScreen
in interface DesktopInteract
display
- index of displayx
- x position to start capturey
- y position to start capturewidth
- capture widthheight
- capture heightoutput
- output buffer to store bytes in.
Be sure that output length is sufficientpublic boolean captureScreen(int display, int x, int y, int width, int height, long buffer, int bufferLength)
captureScreen
in interface DesktopInteract
display
- index of displayx
- x position to start capturey
- y position to start capturewidth
- capture widthheight
- capture heightbuffer
- native output buffer to store bytes in.
Be sure that output length is sufficientbufferLength
- length of native bufferpublic java.awt.image.BufferedImage captureScreen()
captureScreen
in interface DesktopInteract
public java.awt.image.BufferedImage captureScreen(int x, int y, int width, int height)
captureScreen
in interface DesktopInteract
x
- x position to start capturey
- y position to start capturewidth
- capture widthheight
- capture height
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.