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
CancellationTokenThe token to monitor for cancellation requests.
Returns
Type Parameters
TPixel
The pixel type.