Browse Source

merge

Former-commit-id: fa3a4c1887e233c7c30eb64b3c799fd180618369
Former-commit-id: 9ab79023c127a65d837ddf6d5d49088ca9486bd5
Former-commit-id: acff2431cdd13f7186902f7f80bad9951937631a
pull/1/head
Sverre Rekvin 10 years ago
parent
commit
2cd19e85dc
  1. 2
      src/ImageProcessorCore/Samplers/Rotate.cs
  2. 2
      tests/ImageProcessorCore.Tests/Processors/Samplers/SamplerTests.cs

2
src/ImageProcessorCore/Samplers/Rotate.cs

@ -33,7 +33,7 @@ namespace ImageProcessorCore
/// <returns>The <see cref="Image"/></returns>
public static Image Rotate(this Image source, float degrees, Point center, bool expand, ProgressEventHandler progressHandler = null)
{
RotateProcessor processor = new RotateProcessor { Angle = degrees, Center = center, Expand = expand };
RotateProcessor processor = new RotateProcessor { Angle = degrees, Expand = expand };
processor.OnProgress += progressHandler;
try

2
tests/ImageProcessorCore.Tests/Processors/Samplers/SamplerTests.cs

@ -471,7 +471,7 @@
using (Image image = new Image(stream))
using (FileStream output = File.OpenWrite($"TestOutput/Rotate/{filename}"))
{
image.Rotate(63, this.ProgressUpdate)
image.Rotate(20, this.ProgressUpdate)
.Save(output);
}

Loading…
Cancel
Save