save method
void
save()
The
CanvasRenderingContext2D.save()
method of the Canvas 2D API saves the entire state of the canvas by
pushing the current
state onto a stack.
The drawing state
The drawing state that gets saved onto a stack consists of:
- The current transformation matrix.
- The current clipping region.
- The current dash list.
- The current values of the following attributes: CanvasRenderingContext2D.strokeStyle, CanvasRenderingContext2D.fillStyle, CanvasRenderingContext2D.globalAlpha, CanvasRenderingContext2D.lineWidth, CanvasRenderingContext2D.lineCap, CanvasRenderingContext2D.lineJoin, CanvasRenderingContext2D.miterLimit, CanvasRenderingContext2D.lineDashOffset, CanvasRenderingContext2D.shadowOffsetX, CanvasRenderingContext2D.shadowOffsetY, CanvasRenderingContext2D.shadowBlur, CanvasRenderingContext2D.shadowColor, CanvasRenderingContext2D.globalCompositeOperation, CanvasRenderingContext2D.font, CanvasRenderingContext2D.textAlign, CanvasRenderingContext2D.textBaseline, CanvasRenderingContext2D.direction, CanvasRenderingContext2D.imageSmoothingEnabled.
Implementation
external void save();