save method
[This documentation is preliminary and is subject to change.]
Saves the state of the current context.
![]() ![]() |
Syntax
HRESULT retVal = object.save();
Standards information
- HTML Canvas 2D Context, Section 2
Parameters
This method has no parameters.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
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:
The current transformation matrix
The current clipping region
The current values of the following attributes:
Attribute
See also
Build date: 1/23/2012
.png)
.png)