CustomPixelRowAction<TPixel> Delegate

Processes one row of the pixels of a frame, converted to a custom pixel type (ICustomPixel<TSelf>).

public delegate void CustomPixelRowAction<TPixel>(Span<TPixel> row, int y) where TPixel : unmanaged

Type parameters

TPixel
The custom pixel type.

Parameters

row Span<TPixel>
The pixels of the row, which the callback may change. It must not retain the span.
y int
The index of the row, from the top.