|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.util.image.ImageWriter
public class ImageWriter
When Java 1.4/Java 2D is available, ImageWriter encapsulates and simplifies the Java IO processes for writing Image objects to a File as a JPEG image. Currently, it uses the Acme GifEncoder to simply write a GIF image.
| Constructor Summary | |
|---|---|
ImageWriter()
|
|
| Method Summary | |
|---|---|
static void |
writeComponentImage(Component c,
File file)
Writes an Image created from the Component comp to the File file. |
static void |
writeImage(Image img,
Dimension d,
File file)
Writes the BufferedImage image to the File file, using Dimension d to constrain its size. |
static void |
writeImage(Image img,
File file)
Writes the BufferedImage image to the File file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageWriter()
| Method Detail |
|---|
public static void writeComponentImage(Component c,
File file)
throws IOException
IOException
public static void writeImage(Image img,
File file)
throws IOException
IOException
public static void writeImage(Image img,
Dimension d,
File file)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||