FrameRecorder()
Browser availability: desktop-only.
This API requires the desktop runtime. Browser declarations may report the limitation without performing the operation.
The FrameRecorder class extends the Recorder class to provide functionality for saving frames of an applet as PNG files. It allows saving the current frame with a generated filename based on the frame number or taking a snapshot with a specified filename.
Usage example:
FrameRecorder recorder = new FrameRecorder("/path/to/output/folder");
recorder.saveFrame(); // Saves the current frame with a generated filename
recorder.snapshot("snapshot.png"); // Saves the current frame as "snapshot.png"
Syntax
Java
new FrameRecorder(outputFolder)