diff options
Diffstat (limited to 'UVtools.Core/Layer/Layer.cs')
-rw-r--r-- | UVtools.Core/Layer/Layer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UVtools.Core/Layer/Layer.cs b/UVtools.Core/Layer/Layer.cs index 342f119..e60d856 100644 --- a/UVtools.Core/Layer/Layer.cs +++ b/UVtools.Core/Layer/Layer.cs @@ -685,7 +685,7 @@ namespace UVtools.Core var halfHeight = target.Height / 2.0f; using (var translateTransform = new Matrix<double>(2, 3)) { - CvInvoke.GetRotationMatrix2D(new PointF(halfWidth, halfHeight), (double) operation.AngleDegrees, 1.0, translateTransform); + CvInvoke.GetRotationMatrix2D(new PointF(halfWidth, halfHeight), (double) -operation.AngleDegrees, 1.0, translateTransform); /*var rect = new RotatedRect(PointF.Empty, mat.Size, (float) angle).MinAreaRect(); translateTransform[0, 2] += rect.Width / 2.0 - mat.Cols / 2.0; translateTransform[0, 2] += rect.Height / 2.0 - mat.Rows / 2.0;*/ |