|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.image.ImageSaver
public class ImageSaver
This class is used to save rendered images to disk.
Field Summary | |
---|---|
static int |
FORMAT_BMP
|
static int |
FORMAT_HDR
|
static int |
FORMAT_JPEG
|
static int |
FORMAT_PNG
|
static int |
FORMAT_QUICKTIME
|
static int |
FORMAT_TIFF
|
Constructor Summary | |
---|---|
ImageSaver(BFrame parent)
Create an ImageSaver object which will be used for saving a single images. |
|
ImageSaver(BFrame parent,
int width,
int height,
int fps,
int startFrameNumber)
Create an ImageSaver object which will be used for saving an animation. |
Method Summary | |
---|---|
boolean |
clickedOk()
Determine whether the user canceled saving the image. |
void |
lastMovieImage()
This should be called after the last frame of an animation has been saved. |
boolean |
saveImage(ComplexImage img)
Save the next image to disk. |
static boolean |
saveImage(ComplexImage img,
java.io.File f,
int format,
int quality)
Save an image to disk in the specified format. |
boolean |
saveImage(java.awt.Image im)
Save the next image to disk. |
static boolean |
saveImage(java.awt.Image im,
java.io.File f,
int format,
int quality)
Save an image to disk in the specified format. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FORMAT_JPEG
public static final int FORMAT_TIFF
public static final int FORMAT_PNG
public static final int FORMAT_BMP
public static final int FORMAT_HDR
public static final int FORMAT_QUICKTIME
Constructor Detail |
---|
public ImageSaver(BFrame parent)
public ImageSaver(BFrame parent, int width, int height, int fps, int startFrameNumber) throws java.io.IOException
parent
- the parent windowwidth
- the image width, in pixelsheight
- the image height, in pixelsfps
- the number of frames per secondstartFrameNumber
- the default number for the first frame of the animation
java.io.IOException
Method Detail |
---|
public boolean clickedOk()
public boolean saveImage(java.awt.Image im) throws java.io.IOException
java.io.IOException
public boolean saveImage(ComplexImage img) throws java.io.IOException
java.io.IOException
public static boolean saveImage(java.awt.Image im, java.io.File f, int format, int quality) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public static boolean saveImage(ComplexImage img, java.io.File f, int format, int quality) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public void lastMovieImage() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |