|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.media.core.ScratchVideoRecorder org.opensourcephysics.media.core.ImageVideoRecorder
public class ImageVideoRecorder
This is an image video recorder that uses scratch files.
Constructor Summary | |
---|---|
ImageVideoRecorder()
Constructs a default ImageVideoRecorder object. |
|
ImageVideoRecorder(ImageVideoType type)
Constructs a ImageVideoRecorder object for a specific image type. |
Method Summary | |
---|---|
Video |
getVideo()
Gets the video. |
void |
reset()
Discards the current video and resets the recorder to a ready state. |
java.lang.String |
saveVideo(java.lang.String fileName)
Saves all video images to a numbered sequence of files. |
void |
setExpectedFrameCount(int n)
Sets the expected frame count. |
Methods inherited from class org.opensourcephysics.media.core.ScratchVideoRecorder |
---|
addFrame, createVideo, createVideo, getFileName, saveVideo, saveVideoAs, setFileName, setFrameDuration, setSize, suggestFileName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageVideoRecorder()
public ImageVideoRecorder(ImageVideoType type)
Method Detail |
---|
public Video getVideo() throws java.io.IOException
getVideo
in interface VideoRecorder
getVideo
in class ScratchVideoRecorder
java.io.IOException
public java.lang.String saveVideo(java.lang.String fileName) throws java.io.IOException
saveVideo
in interface VideoRecorder
saveVideo
in class ScratchVideoRecorder
fileName
- the file name basis for images
java.io.IOException
public void setExpectedFrameCount(int n)
n
- the expected frame countpublic void reset()
reset
in interface VideoRecorder
reset
in class ScratchVideoRecorder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |