Interface IRowOperation<TBuffer>
Defines the contract for an action that operates on a row with a temporary buffer.
Namespace: SixLabors.ImageSharp.Advanced
Assembly: SixLabors.ImageSharp.dll
Syntax
public interface IRowOperation<TBuffer>
where TBuffer : struct
Type Parameters
Name | Description |
---|---|
TBuffer | The type of buffer elements. |
Methods
| Improve this Doc View SourceGetRequiredBufferLength(Rectangle)
Return the minimal required number of items in the buffer passed on Invoke(Int32, Span<TBuffer>).
Declaration
int GetRequiredBufferLength(Rectangle bounds)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | bounds | The bounds of the operation. |
Returns
Type | Description |
---|---|
Int32 | The required buffer length. |
Invoke(Int32, Span<TBuffer>)
Invokes the method passing the row and a buffer.
Declaration
void Invoke(int y, Span<TBuffer> span)
Parameters
Type | Name | Description |
---|---|---|
Int32 | y | The row y coordinate. |
Span<TBuffer> | span | The contiguous region of memory. |