save - method of the CanvasCtx object
Description:
Saves the current state of the drawing (context).
Note:
This saved state can then be restored by the
restore method.
This method is also functional in
Web panels.
Example:
The
ctx variable represents the drawing canvas (
CanvasCtx). The setup is done on the "
Draw" tab at the beginning of the script of drawing event
onDraw as follows:
var ctx =
pEvent.
GetCtx(1);
JavaScriptSelect and copy to clipboard
ctx.save();