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