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