Table of Contents

Struct CanvasRestoreScope

Namespace
DrawnUi.Views
Assembly
DrawnUi.Maui.dll

Zero-allocation canvas save/restore scope for use in hot rendering paths. Struct equivalent of SKAutoCanvasRestore — no heap allocation in using statements.

public struct CanvasRestoreScope : IDisposable
Implements
Inherited Members
Extension Methods

Constructors

CanvasRestoreScope(SKCanvas)

public CanvasRestoreScope(SKCanvas canvas)

Parameters

canvas SKCanvas

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()