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
sourceIImageProcessingContextThe current image processing context.
builderAffineTransformBuilderThe 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
sourceIImageProcessingContextThe current image processing context.
builderAffineTransformBuilderThe affine transform builder.
samplerIResamplerThe 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
sourceIImageProcessingContextThe current image processing context.
builderProjectiveTransformBuilderThe 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
sourceIImageProcessingContextThe current image processing context.
builderProjectiveTransformBuilderThe projective transform builder.
samplerIResamplerThe 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
sourceIImageProcessingContextThe current image processing context.
sourceRectangleRectangleThe source rectangle
builderAffineTransformBuilderThe affine transform builder.
samplerIResamplerThe 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
sourceIImageProcessingContextThe current image processing context.
sourceRectangleRectangleThe source rectangle
builderProjectiveTransformBuilderThe projective transform builder.
samplerIResamplerThe 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
sourceIImageProcessingContextThe current image processing context.
sourceRectangleRectangleThe source rectangle
transformMatrix3x2The transformation matrix.
targetDimensionsSizeThe size of the result image.
samplerIResamplerThe 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
sourceIImageProcessingContextThe current image processing context.
sourceRectangleRectangleThe source rectangle
transformMatrix4x4The transformation matrix.
targetDimensionsSizeThe size of the result image.
samplerIResamplerThe IResampler to perform the resampling.