public class ScreenCapture
extends java.lang.Object
Constructor and Description |
---|
ScreenCapture() |
Modifier and Type | Method and Description |
---|---|
static boolean |
grabScreen(int display,
int x,
int y,
int width,
int height,
byte[] output)
Grab desktop screen and get raw bytes.
|
static boolean |
grabScreen(int display,
int x,
int y,
int width,
int height,
long output,
int outputLength)
Grab desktop screen and get raw bytes.
|
public static boolean grabScreen(int display, int x, int y, int width, int height, byte[] output)
display
- index of displayx
- x position to start capturey
- y position to start capturewidth
- capture widthheight
- capture heightoutput
- output buffer to store screen bytespublic static boolean grabScreen(int display, int x, int y, int width, int height, long output, int outputLength)
display
- index of displayx
- x position to start capturey
- y position to start capturewidth
- capture widthheight
- capture heightoutput
- native output buffer to store screen bytesoutputLength
- native output length
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.