From b2247d9010bb26ee24b79f18ff8f94fd79751f37 Mon Sep 17 00:00:00 2001 From: Thomas Broust Date: Thu, 26 Feb 2015 15:14:32 +0100 Subject: [PATCH] Fixes the CCW rotation bug Former-commit-id: a345ee7057e77842cd18a9ce193d768c0049f53e Former-commit-id: f12f641601310783f14f14621c088fb627b79a2e --- src/ImageProcessor/Imaging/Helpers/ImageMaths.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageProcessor/Imaging/Helpers/ImageMaths.cs b/src/ImageProcessor/Imaging/Helpers/ImageMaths.cs index d23219840..f8ebc5d90 100644 --- a/src/ImageProcessor/Imaging/Helpers/ImageMaths.cs +++ b/src/ImageProcessor/Imaging/Helpers/ImageMaths.cs @@ -316,7 +316,7 @@ namespace ImageProcessor.Imaging.Helpers /// The zoom needed public static float ZoomAfterRotation(int imageWidth, int imageHeight, float angleInDegrees) { - double radians = DegreesToRadians(angleInDegrees); + double radians = Math.Abs(DegreesToRadians(angleInDegrees)); double radiansSin = Math.Sin(radians); double radiansCos = Math.Cos(radians);