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
sourceIImageProcessingContextThe current image processing context.
degreesXfloatThe angle in degrees to perform the skew along the x-axis.
degreesYfloatThe 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
sourceIImageProcessingContextThe current image processing context.
degreesXfloatThe angle in degrees to perform the skew along the x-axis.
degreesYfloatThe angle in degrees to perform the skew along the y-axis.
samplerIResamplerThe IResampler to perform the resampling.