PixelBytesAction<TState> Delegate

A callback receiving scoped access to the raw pixel bytes of a frame and caller state.

public delegate void PixelBytesAction<TState>(PixelBytesAccessor pixels, TState state) where TState : allows ref struct

Type parameters

TState
The type of the state.

Parameters

pixels PixelBytesAccessor
The accessor, valid only until the callback returns.
state TState
The state passed by the caller.