Scratch for Java

FrameRecorder::snapshot()

Browser availability: desktop-only.

This API requires the desktop runtime. Browser declarations may report the limitation without performing the operation.

Takes a snapshot of the current frame and saves it to the specified filename.

Syntax

Java

.snapshot(filename)

Parameters

Name Data Type Description
filename String the name of the file to save the snapshot to

Return

void

snapshot()

Create Shareable URL

Select Sections