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, setFileName
public void setFrameDuration(double millis)
setFrameDuration
in interface VideoRecorder
setFrameDuration
in class ScratchVideoRecorder
millis
- the duration per frame in millisecondspublic AnimatedGifEncoder getGifEncoder()
java.io.IOException
protected void saveScratch()
saveScratch
in class ScratchVideoRecorder
protected boolean startRecording()
startRecording
in class ScratchVideoRecorder
protected boolean append(java.awt.Image image)
append
in class ScratchVideoRecorder
image
- the image to append