@ -47,6 +47,7 @@ namespace SixLabors.ImageSharp.Processing.Processors
/// <inheritdoc/>
protected override Matrix3x2 GetTransformMatrix()
{
// Tansforms are inverted else the output is the opposite of the expected.
Matrix3x2 matrix = Matrix3x2Extensions.CreateRotationDegrees(this.Degrees, PointF.Empty);
Matrix3x2.Invert(matrix, out matrix);
return matrix;
@ -50,6 +50,7 @@ namespace SixLabors.ImageSharp.Processing.Processors
Matrix3x2 matrix = Matrix3x2Extensions.CreateSkewDegrees(this.DegreesX, this.DegreesY, PointF.Empty);
@ -30,6 +30,8 @@ namespace SixLabors.ImageSharp.Processing.Processors
public TransformProcessor(Matrix3x2 matrix, IResampler sampler)
: base(sampler)
this.TransformMatrix = matrix;
}