public class GifVideoRecorder extends ScratchVideoRecorder
canRecord, chooser, dim, frameCount, frameDuration, frameImage, hasContent, isSaved, saveChanges, saveFile, scratchFile, scratchName, scratchNumber, videoType| Constructor and Description |
|---|
GifVideoRecorder()
Constructs a QTVideoRecorder object.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
append(java.awt.Image image)
Appends a frame to the current video.
|
AnimatedGifEncoder |
getGifEncoder()
Gets the encoder used by this recorder.
|
protected void |
saveScratch()
Saves the video to the current scratchFile.
|
void |
setFrameDuration(double millis)
Sets the time duration per frame.
|
protected boolean |
startRecording()
Starts the video recording process.
|
addFrame, createScratch, createVideo, createVideo, createVideo, getFileName, getVideo, saveVideo, saveVideo, saveVideoAs, selectFile, setFileNamepublic void setFrameDuration(double millis)
setFrameDuration in interface VideoRecordersetFrameDuration in class ScratchVideoRecordermillis - the duration per frame in millisecondspublic AnimatedGifEncoder getGifEncoder()
java.io.IOExceptionprotected void saveScratch()
saveScratch in class ScratchVideoRecorderprotected boolean startRecording()
startRecording in class ScratchVideoRecorderprotected boolean append(java.awt.Image image)
append in class ScratchVideoRecorderimage - the image to append