Table of Contents

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 IImageProcessingContext

The current image processing context.

degreesX float

The angle in degrees to perform the skew along the x-axis.

degreesY float

The angle in degrees to perform the skew along the y-axis.

Returns

IImageProcessingContext

The IImageProcessingContext.

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 IImageProcessingContext

The current image processing context.

degreesX float

The angle in degrees to perform the skew along the x-axis.

degreesY float

The angle in degrees to perform the skew along the y-axis.

sampler IResampler

The IResampler to perform the resampling.

Returns

IImageProcessingContext

The IImageProcessingContext.