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 structType parameters
TState- The type of the state.
Parameters
canvasDrawingCanvas- The canvas, valid only until the callback returns.
stateTState- The state passed by the caller.