VideoRecorderpublic class GifVideoRecorder extends ScratchVideoRecorder
canRecord, chooser, chooserField, chosenExtension, dim, ext, frameCount, frameDuration, frameImage, hasContent, ignoreChooser, isSaved, saveChanges, saveFile, scratchFile, scratchName, scratchNumber, suggestedFileName, tempDirectory, tempFileBasePath, tempFilePrefix, tempFiles, tempFileType, videoType| Constructor | Description |
|---|---|
GifVideoRecorder() |
Constructs a GifVideoRecorder object.
|
| Modifier and Type | Method | 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.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFrame, createScratch, createVideo, createVideo, deleteTempFiles, finalize, getFileName, getFileToBeSaved, getScratchExtension, getVideo, reset, saveVideo, saveVideo, saveVideoAs, selectFile, setFileName, setSize, suggestFileNamepublic GifVideoRecorder()
public void setFrameDuration(double millis)
setFrameDuration in interface VideoRecordersetFrameDuration in class ScratchVideoRecordermillis - the duration per frame in millisecondspublic AnimatedGifEncoder getGifEncoder()
protected 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