Browse Source

Fixes the CCW rotation bug

Former-commit-id: a345ee7057e77842cd18a9ce193d768c0049f53e
Former-commit-id: f12f641601310783f14f14621c088fb627b79a2e
pull/17/head
Thomas Broust 11 years ago
parent
commit
b2247d9010
  1. 2
      src/ImageProcessor/Imaging/Helpers/ImageMaths.cs

2
src/ImageProcessor/Imaging/Helpers/ImageMaths.cs

@ -316,7 +316,7 @@ namespace ImageProcessor.Imaging.Helpers
/// <returns>The zoom needed</returns>
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);

Loading…
Cancel
Save