Class SwizzleProcessor<TSwizzler>
Defines a swizzle operation on an image.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Transforms
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class SwizzleProcessor<TSwizzler> : IImageProcessor where TSwizzler : struct, ISwizzler
Type Parameters
Name | Description |
---|---|
TSwizzler | The swizzle function type. |
Constructors
| Improve this Doc View SourceSwizzleProcessor(TSwizzler)
Initializes a new instance of the SwizzleProcessor<TSwizzler> class.
Declaration
public SwizzleProcessor(TSwizzler swizzler)
Parameters
Type | Name | Description |
---|---|---|
TSwizzler | swizzler | The swizzler operation. |
Properties
| Improve this Doc View SourceSwizzler
Gets the swizzler operation.
Declaration
public TSwizzler Swizzler { get; }
Property Value
Type | Description |
---|---|
TSwizzler |
Methods
| Improve this Doc View SourceCreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
Declaration
public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle)
where TPixel : struct, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration which allows altering default behaviour or extending the library. |
Image<TPixel> | source | The source image. Cannot be null. |
Rectangle | sourceRectangle | The Rectangle structure that specifies the portion of the image object to draw. |
Returns
Type | Description |
---|---|
IImageProcessor<TPixel> |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel type. |