Scratch for Java

GifEncoder::setDispose()

Browser availability: desktop-only.

The encoder behind the desktop's GifRecorder; recording is desktop-only.

Sets the GIF frame disposal code for the last added frame and any subsequent frames. Default is 0 if no transparent color has been set, otherwise 2.

Syntax

Java

.setDispose(code)

Parameters

Name Data Type Description
code int int disposal code.

Return

void

setDispose()

Create Shareable URL

Select Sections