PeachDrawing.Core

PeachDrawing.Core

CanvasLayer Class

An isolated group of drawing begun with BeginLayer(LayerOptions): draw onto Canvas, in the same coordinates as the canvas that began the layer, and disposing the layer composites everything drawn as one piece onto that canvas.

public sealed class CanvasLayer : System.IDisposable

Inheritance System.Object → CanvasLayer

Implements System.IDisposable

Constructors  
CanvasLayer(Canvas, Action) Creates a layer that runs complete once, when it is disposed.
Properties  
Canvas The canvas to draw the layer’s content onto.
Methods  
Dispose() Finishes the layer and composites it onto the canvas that began it. Disposing more than once does nothing.