Scratch for Java

GifRecorder::saveFrame()

Saves the current frame of the applet as a GIF image.

This method captures the current frame from the applet, sets the frame rate, and adds the frame to the GIF encoder. If the applet's pixels are null, the frame is not saved.

Note: This method catches and ignores any NullPointerException that may occur.

Syntax

Java

.saveFrame()

Return

void

saveFrame()