public class ImageUtils
extends java.lang.Object
| Constructor and Description |
|---|
ImageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dumpComponent(javax.swing.JComponent c,
java.lang.String pathAndFilename,
boolean appendTimestamp)
Dump the current component to an image file
|
static void |
dumpImage(java.awt.image.RenderedImage image,
java.lang.String pathAndFilename,
boolean appendTimestamp)
Write out an image file for the give image.
|
public static void dumpImage(java.awt.image.RenderedImage image,
java.lang.String pathAndFilename,
boolean appendTimestamp)
image - pathAndFilename - the full path including filename but not extension. The path must already exist.appendTimestamp - if true the current time in milliseconds of this operation
is appended to the filenamepublic static void dumpComponent(javax.swing.JComponent c,
java.lang.String pathAndFilename,
boolean appendTimestamp)
c - pathAndFilename - the full path including filename but not extension. The path must already exist.appendTimestamp - if true the current time in milliseconds of this operation
is appended to the filename