DrawingAction<TState> Delegate

A callback receiving scoped access to the drawing surface of a frame or of an image, and caller state.

public delegate void DrawingAction<TState>(DrawingCanvas canvas, TState state) where TState : allows ref struct

Type parameters

TState
The type of the state.

Parameters

canvas DrawingCanvas
The canvas, valid only until the callback returns.
state TState
The state passed by the caller.