save method

Saves the state of the current context.

 

Syntax

object.save();

Parameters

This method has no parameters.

Return value

This method does not return a value.

Standards information

Remarks

The ICanvasRenderingContext2D::save and ICanvasRenderingContext2D::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

ICanvasRenderingContext2D::restore