CanvasOperationRestoreState

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
restore state of <mCanvas>
Associationscom.livecode.canvas
Summary

Restore the previously saved state of a canvas.

Parameters
NameTypeDescription
mCanvas

An expression which evaluates to a canvas.

Example
// Save the current canvas properties
save state of this canvas

// Change various properties of the canvas
set the paint of this canvas to solid paint with color [1,1,0,0.5]
set the blend mode of this canvas to "color dodge"
rotate this canvas by 30
set the font of this canvas to font "Helvetica" with size 15

// Restore the previous canvas properties
restore state of this canvas
Description

Restores the properties of mCanvas from the top of the saved property stack.

Tagscanvas