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
IImageProcessingContextThe current image processing context.
builder
AffineTransformBuilderThe affine transform builder.
Returns
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
IImageProcessingContextThe current image processing context.
builder
AffineTransformBuilderThe affine transform builder.
sampler
IResamplerThe IResampler to perform the resampling.
Returns
Transform(IImageProcessingContext, ProjectiveTransformBuilder)
Performs a projective transform of an image.
public static IImageProcessingContext Transform(this IImageProcessingContext source, ProjectiveTransformBuilder builder)
Parameters
source
IImageProcessingContextThe current image processing context.
builder
ProjectiveTransformBuilderThe affine transform builder.
Returns
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
IImageProcessingContextThe current image processing context.
builder
ProjectiveTransformBuilderThe projective transform builder.
sampler
IResamplerThe IResampler to perform the resampling.
Returns
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
IImageProcessingContextThe current image processing context.
sourceRectangle
RectangleThe source rectangle
builder
AffineTransformBuilderThe affine transform builder.
sampler
IResamplerThe IResampler to perform the resampling.
Returns
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
IImageProcessingContextThe current image processing context.
sourceRectangle
RectangleThe source rectangle
builder
ProjectiveTransformBuilderThe projective transform builder.
sampler
IResamplerThe IResampler to perform the resampling.
Returns
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
IImageProcessingContextThe current image processing context.
sourceRectangle
RectangleThe source rectangle
transform
Matrix3x2The transformation matrix.
targetDimensions
SizeThe size of the result image.
sampler
IResamplerThe IResampler to perform the resampling.
Returns
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
IImageProcessingContextThe current image processing context.
sourceRectangle
RectangleThe source rectangle
transform
Matrix4x4The transformation matrix.
targetDimensions
SizeThe size of the result image.
sampler
IResamplerThe IResampler to perform the resampling.