Class ProjectiveTransformProcessor
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Transforms
- Assembly
- SixLabors.ImageSharp.dll
Defines a projective transformation applicable to an Image.
public sealed class ProjectiveTransformProcessor : CloningImageProcessor, ICloningImageProcessor, IImageProcessor
- Inheritance
-
ProjectiveTransformProcessor
- Implements
- Inherited Members
Constructors
ProjectiveTransformProcessor(Matrix4x4, IResampler, Size)
Initializes a new instance of the ProjectiveTransformProcessor class.
public ProjectiveTransformProcessor(Matrix4x4 matrix, IResampler sampler, Size targetDimensions)
Parameters
matrix
Matrix4x4The transform matrix.
sampler
IResamplerThe sampler to perform the transform operation.
targetDimensions
SizeThe target dimensions.
Properties
DestinationSize
Gets the destination size to constrain the transformed image to.
public Size DestinationSize { get; }
Property Value
Sampler
Gets the sampler to perform interpolation of the transform operation.
public IResampler Sampler { get; }
Property Value
TransformMatrix
Gets the matrix used to supply the projective transform.
public Matrix4x4 TransformMatrix { get; }
Property Value
Methods
CreatePixelSpecificCloningProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
public override ICloningImageProcessor<TPixel> CreatePixelSpecificCloningProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>
Parameters
configuration
Configurationsource
Image<TPixel>sourceRectangle
Rectangle
Returns
- ICloningImageProcessor<TPixel>
Type Parameters
TPixel