public class Screenshot
extends java.lang.Object
Copyright 2009 Partner Software, Inc.
| Constructor and Description |
|---|
Screenshot() |
Screenshot(java.awt.Rectangle bounds) |
Screenshot(java.awt.Window window) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.RenderedImage |
capture()
Take a single screenshot at the current bounds settings.
|
java.awt.Rectangle |
getBounds() |
java.awt.image.BufferedImage |
getImage()
Gets the last captured image; if there is none, attempts to take one.
|
void |
setBounds(java.awt.Rectangle newBounds) |
void |
setBoundsToFullScreen() |
void |
setBoundsToWindow(java.awt.Window window) |
void |
writeImageTo(VfsFile file)
Saves the last capture to the given file.
|
public Screenshot()
public Screenshot(java.awt.Window window)
public Screenshot(java.awt.Rectangle bounds)
public void setBoundsToFullScreen()
public void setBoundsToWindow(java.awt.Window window)
public java.awt.image.BufferedImage getImage()
public java.awt.image.RenderedImage capture()
public void writeImageTo(VfsFile file) throws java.io.IOException
java.io.IOExceptionpublic java.awt.Rectangle getBounds()
public void setBounds(java.awt.Rectangle newBounds)