Table of Contents

Class TransformExtensions

Namespace
SixLabors.ImageSharp.Processing
Assembly
SixLabors.ImageSharp.dll

Defines extensions that allow the application of composable transform operations on an Image using Mutate/Clone.

public static class TransformExtensions
Inheritance
TransformExtensions
Inherited Members

Methods

Transform(IImageProcessingContext, AffineTransformBuilder)

Performs an affine transform of an image.

public static IImageProcessingContext Transform(this IImageProcessingContext source, AffineTransformBuilder builder)

Parameters

source IImageProcessingContext

The current image processing context.

builder AffineTransformBuilder

The affine transform builder.

Returns

IImageProcessingContext

The IImageProcessingContext.

Transform(IImageProcessingContext, AffineTransformBuilder, IResampler)

Performs an affine transform of an image using the specified sampling algorithm.

public static IImageProcessingContext Transform(this IImageProcessingContext source, AffineTransformBuilder builder, IResampler sampler)

Parameters

source IImageProcessingContext

The current image processing context.

builder AffineTransformBuilder

The affine transform builder.

sampler IResampler

The IResampler to perform the resampling.

Returns

IImageProcessingContext

The IImageProcessingContext.

Transform(IImageProcessingContext, ProjectiveTransformBuilder)

Performs a projective transform of an image.

public static IImageProcessingContext Transform(this IImageProcessingContext source, ProjectiveTransformBuilder builder)

Parameters

source IImageProcessingContext

The current image processing context.

builder ProjectiveTransformBuilder

The affine transform builder.

Returns

IImageProcessingContext

The IImageProcessingContext.

Transform(IImageProcessingContext, ProjectiveTransformBuilder, IResampler)

Performs a projective transform of an image using the specified sampling algorithm.

public static IImageProcessingContext Transform(this IImageProcessingContext source, ProjectiveTransformBuilder builder, IResampler sampler)

Parameters

source IImageProcessingContext

The current image processing context.

builder ProjectiveTransformBuilder

The projective transform builder.

sampler IResampler

The IResampler to perform the resampling.

Returns

IImageProcessingContext

The IImageProcessingContext.

Transform(IImageProcessingContext, Rectangle, AffineTransformBuilder, IResampler)

Performs an affine transform of an image using the specified sampling algorithm.

public static IImageProcessingContext Transform(this IImageProcessingContext source, Rectangle sourceRectangle, AffineTransformBuilder builder, IResampler sampler)

Parameters

source IImageProcessingContext

The current image processing context.

sourceRectangle Rectangle

The source rectangle

builder AffineTransformBuilder

The affine transform builder.

sampler IResampler

The IResampler to perform the resampling.

Returns

IImageProcessingContext

The IImageProcessingContext.

Transform(IImageProcessingContext, Rectangle, ProjectiveTransformBuilder, IResampler)

Performs a projective transform of an image using the specified sampling algorithm.

public static IImageProcessingContext Transform(this IImageProcessingContext source, Rectangle sourceRectangle, ProjectiveTransformBuilder builder, IResampler sampler)

Parameters

source IImageProcessingContext

The current image processing context.

sourceRectangle Rectangle

The source rectangle

builder ProjectiveTransformBuilder

The projective transform builder.

sampler IResampler

The IResampler to perform the resampling.

Returns

IImageProcessingContext

The IImageProcessingContext.

Transform(IImageProcessingContext, Rectangle, Matrix3x2, Size, IResampler)

Performs an affine transform of an image using the specified sampling algorithm.

public static IImageProcessingContext Transform(this IImageProcessingContext source, Rectangle sourceRectangle, Matrix3x2 transform, Size targetDimensions, IResampler sampler)

Parameters

source IImageProcessingContext

The current image processing context.

sourceRectangle Rectangle

The source rectangle

transform Matrix3x2

The transformation matrix.

targetDimensions Size

The size of the result image.

sampler IResampler

The IResampler to perform the resampling.

Returns

IImageProcessingContext

The IImageProcessingContext.

Transform(IImageProcessingContext, Rectangle, Matrix4x4, Size, IResampler)

Performs a projective transform of an image using the specified sampling algorithm.

public static IImageProcessingContext Transform(this IImageProcessingContext source, Rectangle sourceRectangle, Matrix4x4 transform, Size targetDimensions, IResampler sampler)

Parameters

source IImageProcessingContext

The current image processing context.

sourceRectangle Rectangle

The source rectangle

transform Matrix4x4

The transformation matrix.

targetDimensions Size

The size of the result image.

sampler IResampler

The IResampler to perform the resampling.

Returns

IImageProcessingContext

The IImageProcessingContext.