SkiaSharp.SKCanvas.Save Method

Saves the canvas state.

Syntax

public Int32 Save ()

Returns

The value to pass to SKCanvas.RestoreToCount to balance this save.

Remarks

This call saves the current matrix, clip, and draw filter, and pushes a copy onto a private stack. Subsequent calls to translate, scale, rotate, skew, concat or clipping path or drawing filter all operate on this copy. When the balancing call to SKCanvas.Restore is made, the previous matrix, clipping, and drawing filters are restored.

Requirements

Namespace: SkiaSharp
Assembly: SkiaSharp (in SkiaSharp.dll)
Assembly Versions: 1.0.0.0, 1.49.0.0, 1.52.0.0, 1.53.0.0, 1.54.0.0, 1.54.0.0, 1.55.0.0, 1.56.0.0, 1.57.0.0, 1.58.0.0, 1.59.0.0