Interface IImageVisitor
A visitor to implement a double-dispatch pattern in order to apply pixel-specific operations on non-generic Image instances.
Namespace: SixLabors.ImageSharp.Advanced
Assembly: SixLabors.ImageSharp.dll
Syntax
public interface IImageVisitor
Methods
| Edit this page View SourceVisit<TPixel>(Image<TPixel>)
Provides a pixel-specific implementation for a given operation.
Declaration
void Visit<TPixel>(Image<TPixel> image) where TPixel : unmanaged, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
Image<TPixel> | image | The image. |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel type. |