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
TBuffer
The 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
bounds
RectangleThe 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
rows
RowIntervalThe row interval.
span
Span<TBuffer>The contiguous region of memory.