Class ProjectiveTransformProcessor
Defines a projective transformation applicable to an Image.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Transforms
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class ProjectiveTransformProcessor : CloningImageProcessor, ICloningImageProcessor, IImageProcessorConstructors
| Improve this Doc View SourceProjectiveTransformProcessor(Matrix4x4, IResampler, Size)
Initializes a new instance of the ProjectiveTransformProcessor class.
Declaration
public ProjectiveTransformProcessor(Matrix4x4 matrix, IResampler sampler, Size targetDimensions)Parameters
| Type | Name | Description | 
|---|---|---|
| Matrix4x4 | matrix | The transform matrix. | 
| IResampler | sampler | The sampler to perform the transform operation. | 
| Size | targetDimensions | The target dimensions. | 
Properties
| Improve this Doc View SourceDestinationSize
Gets the destination size to constrain the transformed image to.
Declaration
public Size DestinationSize { get; }Property Value
| Type | Description | 
|---|---|
| Size | 
Sampler
Gets the sampler to perform interpolation of the transform operation.
Declaration
public IResampler Sampler { get; }Property Value
| Type | Description | 
|---|---|
| IResampler | 
TransformMatrix
Gets the matrix used to supply the projective transform.
Declaration
public Matrix4x4 TransformMatrix { get; }Property Value
| Type | Description | 
|---|---|
| Matrix4x4 | 
Methods
| Improve this Doc View SourceCreatePixelSpecificCloningProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
Creates a pixel specific ICloningImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
Declaration
public override ICloningImageProcessor<TPixel> CreatePixelSpecificCloningProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle)
    where TPixel : struct, IPixel<TPixel>Parameters
| Type | Name | Description | 
|---|---|---|
| Configuration | configuration | The configuration which allows altering default behaviour or extending the library. | 
| Image<TPixel> | source | The source image. Cannot be null. | 
| Rectangle | sourceRectangle | The Rectangle structure that specifies the portion of the image object to draw. | 
Returns
| Type | Description | 
|---|---|
| ICloningImageProcessor<TPixel> | 
Type Parameters
| Name | Description | 
|---|---|
| TPixel | The pixel type. | 
Overrides
SixLabors.ImageSharp.Processing.Processors.CloningImageProcessor.CreatePixelSpecificCloningProcessor<TPixel>(SixLabors.ImageSharp.Configuration, SixLabors.ImageSharp.Image<TPixel>, SixLabors.ImageSharp.Rectangle)