Class SkewExtensions
- Namespace
- SixLabors.ImageSharp.Processing
- Assembly
- SixLabors.ImageSharp.dll
Defines extensions that allow the application of skew operations on an Image using Mutate/Clone.
public static class SkewExtensions
- Inheritance
-
SkewExtensions
- Inherited Members
Methods
Skew(IImageProcessingContext, float, float)
Skews an image by the given angles in degrees.
public static IImageProcessingContext Skew(this IImageProcessingContext source, float degreesX, float degreesY)
Parameters
source
IImageProcessingContextThe current image processing context.
degreesX
floatThe angle in degrees to perform the skew along the x-axis.
degreesY
floatThe angle in degrees to perform the skew along the y-axis.
Returns
Skew(IImageProcessingContext, float, float, IResampler)
Skews an image by the given angles in degrees using the specified sampling algorithm.
public static IImageProcessingContext Skew(this IImageProcessingContext source, float degreesX, float degreesY, IResampler sampler)
Parameters
source
IImageProcessingContextThe current image processing context.
degreesX
floatThe angle in degrees to perform the skew along the x-axis.
degreesY
floatThe angle in degrees to perform the skew along the y-axis.
sampler
IResamplerThe IResampler to perform the resampling.