Interface IRowIntervalOperation<TBuffer>
- Namespace
- SixLabors.ImageSharp.Advanced
- Assembly
- SixLabors.ImageSharp.dll
Defines the contract for an action that operates on a row interval with a temporary buffer.
public interface IRowIntervalOperation<TBuffer> where TBuffer : unmanaged
Type Parameters
TBufferThe type of buffer elements.
Methods
GetRequiredBufferLength(Rectangle)
Return the minimal required number of items in the buffer passed on Invoke(in RowInterval, Span<TBuffer>).
int GetRequiredBufferLength(Rectangle bounds)
Parameters
boundsRectangleThe bounds of the operation.
Returns
- int
The required buffer length.
Invoke(in RowInterval, Span<TBuffer>)
Invokes the method passing the row interval and a buffer.
void Invoke(in RowInterval rows, Span<TBuffer> span)
Parameters
rowsRowIntervalThe row interval.
spanSpan<TBuffer>The contiguous region of memory.