restore method
Returns previously saved CanvasRenderingContext2D path state and attributes.
![]() ![]() |
Syntax
HRESULT retVal = object.restore();
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.
Standards information
- HTML Canvas 2D Context, Section 2
Remarks
Use the ICanvasRenderingContext2D::save method to save the current state of the context. Save and restore the following states and attributes:
- The current transformation matrix
- The current clipping region
- The current values of the following attributes:
Attribute
Build date: 11/12/2012

