Class SwizzleProcessor<TSwizzler>
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Transforms
- Assembly
- SixLabors.ImageSharp.dll
Defines a swizzle operation on an image.
public sealed class SwizzleProcessor<TSwizzler> : IImageProcessor where TSwizzler : struct, ISwizzler
Type Parameters
TSwizzler
The swizzle function type.
- Inheritance
-
SwizzleProcessor<TSwizzler>
- Implements
- Inherited Members
Constructors
SwizzleProcessor(TSwizzler)
Initializes a new instance of the SwizzleProcessor<TSwizzler> class.
public SwizzleProcessor(TSwizzler swizzler)
Parameters
swizzler
TSwizzlerThe swizzler operation.
Properties
Swizzler
Gets the swizzler operation.
public TSwizzler Swizzler { get; }
Property Value
- TSwizzler
Methods
CreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>
Parameters
configuration
Configurationsource
Image<TPixel>sourceRectangle
Rectangle
Returns
- IImageProcessor<TPixel>
Type Parameters
TPixel