Class ScreenCapture
- java.lang.Object
-
- org.jitsi.impl.neomedia.imgstreaming.ScreenCapture
-
public class ScreenCapture extends Object
This class uses native code to capture desktop screen. It should work for Windows, Mac OS X and X11-based Unix such as Linux and FreeBSD.- Author:
- Sebastien Vincent
-
-
Constructor Summary
Constructors Constructor Description ScreenCapture()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleangrabScreen(int display, int x, int y, int width, int height, byte[] output)Grab desktop screen and get raw bytes.static booleangrabScreen(int display, int x, int y, int width, int height, long output, int outputLength)Grab desktop screen and get raw bytes.
-
-
-
Method Detail
-
grabScreen
public static boolean grabScreen(int display, int x, int y, int width, int height, byte[] output)Grab desktop screen and get raw bytes.- Parameters:
display- index of displayx- x position to start capturey- y position to start capturewidth- capture widthheight- capture heightoutput- output buffer to store screen bytes- Returns:
- true if grab success, false otherwise
-
grabScreen
public static boolean grabScreen(int display, int x, int y, int width, int height, long output, int outputLength)Grab desktop screen and get raw bytes.- Parameters:
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- Returns:
- true if grab success, false otherwise
-
-