Name

CanvasRenderingContext2D.restore( ): reset drawing state to saved values

Synopsis

void restore( )

Description

This method pops the stack of saved graphics states and restores the values of the CanvasRenderingContext2D properties, the clipping path, and the transformation matrix. See the save( ) method for further information.

Bugs

Firefox 1.5 does not correctly save and restore the strokeStyle property.

See Also

CanvasRenderingContext2D.save( )

Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.