Class SwizzleExtensions
Defines extensions that allow the application of swizzle operations on an Image
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Extensions.Transforms
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class SwizzleExtensions
Methods
| Improve this Doc View SourceSwizzle<TSwizzler>(IImageProcessingContext, TSwizzler)
Swizzles an image.
Declaration
public static IImageProcessingContext Swizzle<TSwizzler>(this IImageProcessingContext source, TSwizzler swizzler)
where TSwizzler : struct, ISwizzler
Parameters
| Type | Name | Description |
|---|---|---|
| IImageProcessingContext | source | The image to swizzle. |
| TSwizzler | swizzler | The swizzler function. |
Returns
| Type | Description |
|---|---|
| IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Type Parameters
| Name | Description |
|---|---|
| TSwizzler | The swizzler function type. |