Global Function
Declaration
func pushState()
Parameters
| None. |
Returns
-
Description
Pushes a copy of the current graphics state onto the graphics state stack for the context. Each graphics context maintains a stack of graphics states. Graphics state parameters that are saved include: current transformation matrix, line width, line join, line cap, fill color, stroke color, alpha value, font, font size.
Examples
Related
popState
translate
rotate