Class SkewExtensions
Defines extensions that allow the application of skew operations on an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class SkewExtensionsMethods
| Improve this Doc View SourceSkew(IImageProcessingContext, Single, Single)
Skews an image by the given angles in degrees.
Declaration
public static IImageProcessingContext Skew(this IImageProcessingContext source, float degreesX, float degreesY)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image to skew. | 
| Single | degreesX | The angle in degrees to perform the skew along the x-axis. | 
| Single | degreesY | The angle in degrees to perform the skew along the y-axis. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. | 
Skew(IImageProcessingContext, Single, Single, IResampler)
Skews an image by the given angles in degrees using the specified sampling algorithm.
Declaration
public static IImageProcessingContext Skew(this IImageProcessingContext source, float degreesX, float degreesY, IResampler sampler)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image to skew. | 
| Single | degreesX | The angle in degrees to perform the skew along the x-axis. | 
| Single | degreesY | The angle in degrees to perform the skew along the y-axis. | 
| IResampler | sampler | The IResampler to perform the resampling. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |