Table of Contents

Interface IImageVisitorAsync

Namespace
SixLabors.ImageSharp.Advanced
Assembly
SixLabors.ImageSharp.dll

A visitor to implement a double-dispatch pattern in order to apply pixel-specific operations on non-generic Image instances.

public interface IImageVisitorAsync

Methods

VisitAsync<TPixel>(Image<TPixel>, CancellationToken)

Provides a pixel-specific implementation for a given operation.

Task VisitAsync<TPixel>(Image<TPixel> image, CancellationToken cancellationToken) where TPixel : unmanaged, IPixel<TPixel>

Parameters

image Image<TPixel>

The image.

cancellationToken CancellationToken

The token to monitor for cancellation requests.

Returns

Task

A Task representing the asynchronous operation.

Type Parameters

TPixel

The pixel type.