|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VideoRecorder
This defines methods for creating a video from a series of images.
Method Summary | |
---|---|
void |
addFrame(java.awt.Image image)
Adds a video frame to the current video. |
void |
createVideo()
Creates a new video to which frames can be added. |
void |
createVideo(java.lang.String fileName)
Creates a new video with the specified file name. |
void |
createVideo(java.lang.String fileName,
int width,
int height)
Creates a new video with the specified file name and dimensions. |
java.lang.String |
getFileName()
Gets the current file name. |
Video |
getVideo()
Gets the current video. |
java.lang.String |
saveVideo()
Saves the video to the current file. |
java.lang.String |
saveVideo(java.lang.String fileName)
Saves the video to the specified file. |
java.lang.String |
saveVideoAs()
Saves the video to a file selected with a chooser. |
void |
setFileName(java.lang.String path)
Sets the file name. |
void |
setFrameDuration(double millis)
Sets the time duration per frame for subsequent added frames. |
Method Detail |
---|
void createVideo() throws java.io.IOException
java.io.IOException
void createVideo(java.lang.String fileName) throws java.io.IOException
fileName
- name of the file to which the video will be written
java.io.IOException
void createVideo(java.lang.String fileName, int width, int height) throws java.io.IOException
fileName
- name of the video filewidth
- width of the new videoheight
- height of the new video
java.io.IOException
void setFrameDuration(double millis)
millis
- the duration per frame in millisecondsvoid addFrame(java.awt.Image image) throws java.io.IOException
image
- the image to be drawn on the video frame.
java.io.IOException
Video getVideo() throws java.io.IOException
java.io.IOException
java.lang.String saveVideo() throws java.io.IOException
java.io.IOException
java.lang.String saveVideo(java.lang.String fileName) throws java.io.IOException
fileName
- the file name to be saved
java.io.IOException
java.lang.String saveVideoAs() throws java.io.IOException
java.io.IOException
java.lang.String getFileName()
void setFileName(java.lang.String path)
path
- the file name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |