public class DesktopInteractImpl extends Object implements DesktopInteract
Robot| Constructor and Description |
|---|
DesktopInteractImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 AWTException,
SecurityException
AWTException - if platform configuration does not allow low-level
input controlSecurityException - if Robot creation is not permittedpublic boolean captureScreen(int display,
byte[] output)
captureScreen in interface DesktopInteractdisplay - 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 DesktopInteractdisplay - 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 DesktopInteractdisplay - 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 DesktopInteractdisplay - 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 BufferedImage captureScreen()
captureScreen in interface DesktopInteractpublic BufferedImage captureScreen(int x, int y, int width, int height)
captureScreen in interface DesktopInteractx - x position to start capturey - y position to start capturewidth - capture widthheight - capture heightCopyright © 2022 jitsi.org. All rights reserved.