Browse Source

Quality should be copied.

Former-commit-id: e30a7b839d512f4a5faa85d16b23d421f2325e4c
Former-commit-id: a49e33c994d79bf4092788ef3027c1f47c2f66c4
Former-commit-id: 15bc1d0c90ebca357322e1ba10c21c3830a8e4ae
af/merge-core
James Jackson-South 10 years ago
parent
commit
9cbb32112a
  1. 1
      src/ImageProcessorCore/Image.cs
  2. 3
      src/ImageProcessorCore/ImageExtensions.cs

1
src/ImageProcessorCore/Image.cs

@ -73,6 +73,7 @@ namespace ImageProcessorCore
}
}
this.Quality = other.Quality;
this.RepeatCount = other.RepeatCount;
this.HorizontalResolution = other.HorizontalResolution;
this.VerticalResolution = other.VerticalResolution;

3
src/ImageProcessorCore/ImageExtensions.cs

@ -116,7 +116,7 @@ namespace ImageProcessorCore
/// <returns>The <see cref="Image"/>.</returns>
public static Image Process(this Image source, int width, int height, Rectangle sourceRectangle, Rectangle targetRectangle, IImageSampler sampler)
{
return PerformAction(source, false, (sourceImage, targetImage) => sampler.Apply(targetImage, sourceImage, width, height, targetRectangle, sourceRectangle));
return PerformAction(source, false, (sourceImage, targetImage) => sampler.Apply(targetImage, sourceImage, width, height, targetRectangle, sourceRectangle));
}
/// <summary>
@ -135,6 +135,7 @@ namespace ImageProcessorCore
{
// Several properties require copying
// TODO: Check why we need to set these?
Quality = source.Quality,
HorizontalResolution = source.HorizontalResolution,
VerticalResolution = source.VerticalResolution,
CurrentImageFormat = source.CurrentImageFormat,

Loading…
Cancel
Save