From efcd3d8913547c458a695db075d73954dd89453e Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Fri, 7 Feb 2020 15:57:39 +1100 Subject: [PATCH] Update ProjectiveTransformProcessor{TPixel}.cs --- .../Transforms/ProjectiveTransformProcessor{TPixel}.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ImageSharp/Processing/Processors/Transforms/ProjectiveTransformProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Transforms/ProjectiveTransformProcessor{TPixel}.cs index 76bbc3a90..5034b072f 100644 --- a/src/ImageSharp/Processing/Processors/Transforms/ProjectiveTransformProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/Transforms/ProjectiveTransformProcessor{TPixel}.cs @@ -59,23 +59,21 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms if (this.resampler is NearestNeighborResampler) { Rectangle sourceBounds = this.SourceRectangle; - var nearestRowAction = new NearestNeighborRowIntervalAction(ref sourceBounds, ref matrix, width, source, destination); ParallelRowIterator.IterateRows( targetBounds, configuration, - in nearestRowAction); + new NearestNeighborRowIntervalAction(ref sourceBounds, ref matrix, width, source, destination)); return; } using var kernelMap = new TransformKernelMap(configuration, source.Size(), destination.Size(), this.resampler); - var rowAction = new RowIntervalAction(configuration, kernelMap, ref matrix, width, source, destination); ParallelRowIterator.IterateRows( targetBounds, configuration, - in rowAction); + new RowIntervalAction(configuration, kernelMap, ref matrix, width, source, destination)); } private readonly struct NearestNeighborRowIntervalAction : IRowIntervalAction