Table of Contents

Class LayerBrush<T>

Namespace
Artemis.Core.LayerBrushes
Assembly
Artemis.Core.dll

Represents a brush that renders on a layer

public abstract class LayerBrush<T> : PropertiesLayerBrush<T>, IBreakableModel, IDisposable where T : LayerPropertyGroup, new()

Type Parameters

T

The type of brush properties

Inheritance
LayerBrush<T>
Implements
Inherited Members

Constructors

LayerBrush()

Creates a new instance of the LayerBrush<T> class

protected LayerBrush()

Methods

Render(SKCanvas, SKRect, SKPaint)

The main method of rendering anything to the layer. The provided SKCanvas is specific to the layer and matches it's width and height.

Called during rendering or layer preview, in the order configured on the layer

public abstract void Render(SKCanvas canvas, SKRect bounds, SKPaint paint)

Parameters

canvas SKCanvas

The layer canvas

bounds SKRect

The area to be filled, covers the shape

paint SKPaint

The paint to be used to fill the shape