From b4079eaf1869b4ead35468340d0317c417e089c0 Mon Sep 17 00:00:00 2001 From: Sverre Rekvin Date: Thu, 23 Jun 2016 23:11:25 +0200 Subject: [PATCH] 50 degree problem Former-commit-id: 0520faa2f766ec02358fce15ec7207dc3f05a2fa Former-commit-id: d09c6d305cb917e513a2f0a85a7e236bb115e7a2 Former-commit-id: f3d80d94646b8ab67d41168ef35cdcb4dd3e2359 --- src/ImageProcessorCore/Samplers/Processors/SkewProcessor.cs | 4 +--- .../Processors/Samplers/SamplerTests.cs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ImageProcessorCore/Samplers/Processors/SkewProcessor.cs b/src/ImageProcessorCore/Samplers/Processors/SkewProcessor.cs index da08d0bc0..eb3fac8ca 100644 --- a/src/ImageProcessorCore/Samplers/Processors/SkewProcessor.cs +++ b/src/ImageProcessorCore/Samplers/Processors/SkewProcessor.cs @@ -123,9 +123,7 @@ namespace ImageProcessorCore if (revY) { deltaY = ((((-skewMaxY*(sx + deltaX)))/(source.Width-skewMaxX - 1)))+skewMaxY+off; - //deltaY = (((skewMaxY * sx)) / (source.Height - 1)); - // deltaY = -deltaY + skewMaxY; - // deltaY = sx+deltaX; + } else { diff --git a/tests/ImageProcessorCore.Tests/Processors/Samplers/SamplerTests.cs b/tests/ImageProcessorCore.Tests/Processors/Samplers/SamplerTests.cs index b628049aa..874258544 100644 --- a/tests/ImageProcessorCore.Tests/Processors/Samplers/SamplerTests.cs +++ b/tests/ImageProcessorCore.Tests/Processors/Samplers/SamplerTests.cs @@ -500,7 +500,7 @@ using (Image image = new Image(stream)) using (FileStream output = File.OpenWrite($"TestOutput/Skew/{filename}")) { - image.Skew(10, -20, this.ProgressUpdate) + image.Skew(50, -60, this.ProgressUpdate) .Save(output); }