From 85720ff340b39abfd75768bf15a3b91a544f4280 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: 94a2aad2cc4784c8cb648633f39a53ccedff701f Former-commit-id: 33e77b576979737192f281b2f25fd0d3bcaea803 --- 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 d232198409..f8ebc5d909 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);