From 079e2a671b198304c9997bdca195679c4e987a1b Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Thu, 6 Feb 2020 17:00:31 +0100 Subject: [PATCH] Add XML comments to the CropProcessor --- .../Processors/Transforms/CropProcessor{TPixel}.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ImageSharp/Processing/Processors/Transforms/CropProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Transforms/CropProcessor{TPixel}.cs index 8afe2d7da..103c5d3ff 100644 --- a/src/ImageSharp/Processing/Processors/Transforms/CropProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/Transforms/CropProcessor{TPixel}.cs @@ -16,7 +16,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms internal class CropProcessor : TransformProcessor where TPixel : struct, IPixel { - private Rectangle cropRectangle; + private readonly Rectangle cropRectangle; /// /// Initializes a new instance of the class. @@ -59,12 +59,21 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms in rowAction); } + /// + /// A implementing the processor logic for . + /// private readonly struct RowIntervalAction : IRowIntervalAction { private readonly Rectangle bounds; private readonly ImageFrame source; private readonly ImageFrame destination; + /// + /// Initializes a new instance of the struct. + /// + /// The target processing bounds for the current instance. + /// The source for the current instance. + /// The destination for the current instance. [MethodImpl(InliningOptions.ShortMethod)] public RowIntervalAction(ref Rectangle bounds, ImageFrame source, ImageFrame destination) { @@ -73,6 +82,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms this.destination = destination; } + /// [MethodImpl(InliningOptions.ShortMethod)] public void Invoke(in RowInterval rows) {