Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

save method

Saves the state of the current context.

HTML Canvas 2D Context, Section 2Internet Explorer 9

 

Syntax

CanvasRenderingContext2D.save();

Parameters

This method has no parameters.

Return value

This method does not return a value.

Standards information

Remarks

The save and restore methods preserve and restore the state of a context, but not specific paths or graphics. The following attributes and states are affected:

See also

CanvasRenderingContext2D
restore

 

 

Show:
© 2015 Microsoft