|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ezware.oxbow.swingbits.graphics.Screenshot
public class Screenshot
| Method Summary | |
|---|---|
static Screenshot |
capture(int width,
int height)
|
static Screenshot |
capture(Rectangle screenRect)
Creates an image containing pixels read from the screen. |
static List<DisplayMode> |
getDisplayInfo()
Retrieves screen information as a list of display modes, which includes screen dimensions, bit depth and refresh rate |
Image |
getImage()
Returns the image screenshot is based on |
boolean |
store(String formatName,
File output)
Writes an image using an arbitrary ImageWriter
that supports the given format to a File. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final Screenshot capture(Rectangle screenRect)
throws AWTException
screenRect - Rect to capture in screen coordinates
IllegalArgumentException - if screenRect width and height are not greater than zero
SecurityException - if readDisplayPixels permission is not granted
AWTExceptionSecurityManager.checkPermission(java.security.Permission),
AWTPermission
public static final Screenshot capture(int width,
int height)
throws AWTException
AWTExceptionpublic Image getImage()
public boolean store(String formatName,
File output)
throws IOException
ImageWriter
that supports the given format to a File. If
there is already a File present, its contents are
discarded.
formatName - a String containg the informal name of the format.output - a File to be written to
if an error occurs during writing.
IllegalArgumentException - if any parameter is null.
IOException - if an error occurs during writing.public static final List<DisplayMode> getDisplayInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||