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 SkewExtensions
Methods
| Edit this page View SourceSkew(IImageProcessingContext, float, float)
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 current image processing context. |
float | degreesX | The angle in degrees to perform the skew along the x-axis. |
float | degreesY | The angle in degrees to perform the skew along the y-axis. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
Skew(IImageProcessingContext, float, float, 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 current image processing context. |
float | degreesX | The angle in degrees to perform the skew along the x-axis. |
float | 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 |