Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2016 Microsoft