Interface IRowOperation<TBuffer>
- Namespace
- SixLabors.ImageSharp.Advanced
- Assembly
- SixLabors.ImageSharp.dll
Defines the contract for an action that operates on a row with a temporary buffer.
public interface IRowOperation<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(int, Span<TBuffer>).
int GetRequiredBufferLength(Rectangle bounds)
Parameters
bounds
RectangleThe bounds of the operation.
Returns
- int
The required buffer length.
Invoke(int, Span<TBuffer>)
Invokes the method passing the row and a buffer.
void Invoke(int y, Span<TBuffer> span)