JavaScript: The Definitive Guide

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

25.33.1. Synopsis

void restore( )

25.33.2. 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.

25.33.3. Bugs

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

25.33.4. See Also

CanvasRenderingContext2D.save( )

Категории