Table of Contents

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 Rectangle

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

The row interval.

span Span<TBuffer>

The contiguous region of memory.