|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.utility.screenshots.ScreenshotCreator
public class ScreenshotCreator
This class creates a screenshot image from the frame buffer's content.
| Nested Class Summary | |
|---|---|
static class |
ScreenshotCreator.Format
This format indicates if the resulting image will have an alpha channel |
| Constructor Summary | |
|---|---|
ScreenshotCreator(int width,
int height,
ScreenshotCreator.Format format)
Starts a new Thread that waits until the time is right to create a new screenshot. |
|
ScreenshotCreator(int width,
int height,
ScreenshotCreator.Format format,
java.io.File targetFile)
Starts a new Thread that waits until the time is right to create a new screenshot. |
|
| Method Summary | |
|---|---|
java.awt.image.BufferedImage |
createScreenshot()
Creates a screenshot from a ByteBuffer |
void |
createScreenshot(java.io.File targetFile)
Creates a screenshot from a ByteBuffer (asynchronously) |
java.nio.ByteBuffer |
getBuffer()
|
ScreenshotCreator.Format |
getFormat()
|
int |
getGLFormat()
|
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScreenshotCreator(int width,
int height,
ScreenshotCreator.Format format,
java.io.File targetFile)
width - the image's widthheight - the image's heightformat - RGB or RGBAtargetFile - the file to save the shot to
public ScreenshotCreator(int width,
int height,
ScreenshotCreator.Format format)
width - the image's widthheight - the image's heightformat - RGB or RGBA| Method Detail |
|---|
public ScreenshotCreator.Format getFormat()
public int getGLFormat()
public java.nio.ByteBuffer getBuffer()
public void run()
run in interface java.lang.Runnablepublic java.awt.image.BufferedImage createScreenshot()
public void createScreenshot(java.io.File targetFile)
targetFile - the file to save the shot to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||