Table of Contents

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 Rectangle

The 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)

Parameters

y int

The row y coordinate.

span Span<TBuffer>

The contiguous region of memory.