diff --git a/src/ImageSharp/ApplyProcessors.cs b/src/ImageSharp/ApplyProcessors.cs
index 40cd7500a..aa44dfc21 100644
--- a/src/ImageSharp/ApplyProcessors.cs
+++ b/src/ImageSharp/ApplyProcessors.cs
@@ -17,19 +17,19 @@ namespace ImageSharp
public static partial class ImageExtensions
{
///
- /// Mutates the image by applying the operations to it.
+ /// Mutates the image by applying the image operation to it.
///
/// The pixel format.
/// The image to rotate, flip, or both.
- /// The operations to perform on the source.
- public static void Mutate(this Image source, Action> operations)
+ /// The operations to perform on the source.
+ public static void Mutate(this Image source, Action> operation)
where TPixel : struct, IPixel
{
- Guard.NotNull(operations, nameof(operations));
+ Guard.NotNull(operation, nameof(operation));
Guard.NotNull(source, nameof(source));
IInternalImageProcessingContext operationsRunner = source.Configuration.ImageOperationsProvider.CreateImageProcessingContext(source, true);
- operations(operationsRunner);
+ operation(operationsRunner);
operationsRunner.Apply();
}
@@ -51,20 +51,20 @@ namespace ImageSharp
}
///
- /// Clones the current image mutating the clone by applying the operations to it.
+ /// Clones the current image mutating the clone by applying the operation to it.
///
/// The pixel format.
/// The image to rotate, flip, or both.
- /// The operations to perform on the source.
- /// Anew Image which has teh data from the but with the applied.
- public static Image Clone(this Image source, Action> operations)
+ /// The operations to perform on the source.
+ /// Anew Image which has teh data from the but with the applied.
+ public static Image Clone(this Image source, Action> operation)
where TPixel : struct, IPixel
{
- Guard.NotNull(operations, nameof(operations));
+ Guard.NotNull(operation, nameof(operation));
Guard.NotNull(source, nameof(source));
IInternalImageProcessingContext operationsRunner = source.Configuration.ImageOperationsProvider.CreateImageProcessingContext(source, false);
- operations(operationsRunner);
+ operation(operationsRunner);
return operationsRunner.Apply();
}
diff --git a/src/ImageSharp/DefaultInternalImageProcessorContext.cs b/src/ImageSharp/DefaultInternalImageProcessorContext.cs
index 64f444325..0562f90ce 100644
--- a/src/ImageSharp/DefaultInternalImageProcessorContext.cs
+++ b/src/ImageSharp/DefaultInternalImageProcessorContext.cs
@@ -57,9 +57,9 @@ namespace ImageSharp
// this will only work if the first processor applied is the cloning one thus
// realistically for this optermissation to work the resize must the first processor
// applied any only up processors will take the douple data path.
- if (processor is ICloneingImageProcessor)
+ if (processor is ICloningImageProcessor)
{
- var cloningProcessor = (ICloneingImageProcessor)processor;
+ var cloningProcessor = (ICloningImageProcessor)processor;
this.destination = cloningProcessor.CloneAndApply(this.source, rectangle);
return this;
}
diff --git a/src/ImageSharp/Image/ICloneingImageProcessor.cs b/src/ImageSharp/Image/ICloningImageProcessor.cs
similarity index 82%
rename from src/ImageSharp/Image/ICloneingImageProcessor.cs
rename to src/ImageSharp/Image/ICloningImageProcessor.cs
index 92f87d02e..a6a3a9a73 100644
--- a/src/ImageSharp/Image/ICloneingImageProcessor.cs
+++ b/src/ImageSharp/Image/ICloningImageProcessor.cs
@@ -1,21 +1,18 @@
-//
+//
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
//
namespace ImageSharp.Processing
{
- using System;
- using System.Threading.Tasks;
-
using ImageSharp.PixelFormats;
using SixLabors.Primitives;
///
- /// Encapsulates methods to alter the pixels of an image.
+ /// Encapsulates methods to alter the pixels of a new image, cloned from the original image.
///
/// The pixel format.
- internal interface ICloneingImageProcessor : IImageProcessor
+ internal interface ICloningImageProcessor : IImageProcessor
where TPixel : struct, IPixel
{
///
diff --git a/src/ImageSharp/Processing/Processors/CLoneingImageProcessor.cs b/src/ImageSharp/Processing/Processors/CloningImageProcessor.cs
similarity index 98%
rename from src/ImageSharp/Processing/Processors/CLoneingImageProcessor.cs
rename to src/ImageSharp/Processing/Processors/CloningImageProcessor.cs
index a95e466ab..cf84462c5 100644
--- a/src/ImageSharp/Processing/Processors/CLoneingImageProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/CloningImageProcessor.cs
@@ -15,7 +15,7 @@ namespace ImageSharp.Processing
/// Allows the application of processors to images.
///
/// The pixel format.
- internal abstract class CloneingImageProcessor : IImageProcessor, ICloneingImageProcessor
+ internal abstract class CloningImageProcessor : IImageProcessor, ICloningImageProcessor
where TPixel : struct, IPixel
{
///
diff --git a/src/ImageSharp/Processing/Processors/Transforms/ResamplingWeightedProcessor.cs b/src/ImageSharp/Processing/Processors/Transforms/ResamplingWeightedProcessor.cs
index 957f917be..59c0c37a2 100644
--- a/src/ImageSharp/Processing/Processors/Transforms/ResamplingWeightedProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Transforms/ResamplingWeightedProcessor.cs
@@ -16,7 +16,7 @@ namespace ImageSharp.Processing.Processors
/// Adapted from
///
/// The pixel format.
- internal abstract partial class ResamplingWeightedProcessor : CloneingImageProcessor
+ internal abstract partial class ResamplingWeightedProcessor : CloningImageProcessor
where TPixel : struct, IPixel
{
///