Browse Source

Tuple deconstruct

pull/590/head
James Jackson-South 8 years ago
parent
commit
e87d380eae
  1. 8
      src/ImageSharp/Processing/Transforms/Processors/ResizeProcessor.cs

8
src/ImageSharp/Processing/Transforms/Processors/ResizeProcessor.cs

@ -56,12 +56,12 @@ namespace SixLabors.ImageSharp.Processing.Transforms.Processors
Guard.MustBeGreaterThan(tempWidth, 0, nameof(tempWidth));
Guard.MustBeGreaterThan(tempHeight, 0, nameof(tempHeight));
(Size size, Rectangle rectangle) locationBounds = ResizeHelper.CalculateTargetLocationAndBounds(sourceSize, options, tempWidth, tempHeight);
(Size size, Rectangle rectangle) = ResizeHelper.CalculateTargetLocationAndBounds(sourceSize, options, tempWidth, tempHeight);
this.Sampler = options.Sampler;
this.Width = locationBounds.size.Width;
this.Height = locationBounds.size.Height;
this.ResizeRectangle = locationBounds.rectangle;
this.Width = size.Width;
this.Height = size.Height;
this.ResizeRectangle = rectangle;
this.Compand = options.Compand;
}

Loading…
Cancel
Save