Table of Contents

Delegate PixelRowOperation<T>

Namespace
SixLabors.ImageSharp.Processing
Assembly
SixLabors.ImageSharp.dll

A delegate representing a user defined processing delegate to use to modify image rows.

public delegate void PixelRowOperation<in T>(Span<Vector4> span, T value)

Parameters

span Span<Vector4>

The target row of Vector4 pixels to process.

value T

The parameter of the method that this delegate encapsulates.

Type Parameters

T

The type of the parameter of the method that this delegate encapsulates. This type parameter is contravariant.That is, you can use either the type you specified or any type that is less derived.

Remarks

The X, Y, Z, and W fields map the RGBA channels respectively.

Constructors

PixelRowOperation(object, nint)

public PixelRowOperation(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(Span<Vector4>, T, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(Span<Vector4> span, T value, AsyncCallback callback, object @object)

Parameters

span Span<Vector4>
value T
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(Span<Vector4>, T)

public virtual void Invoke(Span<Vector4> span, T value)

Parameters

span Span<Vector4>
value T