diff --git a/src/ImageSharp/Advanced/ImageExtensions.cs b/src/ImageSharp/Advanced/ImageExtensions.cs index 727c73e837..243745c9b2 100644 --- a/src/ImageSharp/Advanced/ImageExtensions.cs +++ b/src/ImageSharp/Advanced/ImageExtensions.cs @@ -2,20 +2,15 @@ // Licensed under the Apache License, Version 2.0. using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using SixLabors.ImageSharp.Formats; using SixLabors.ImageSharp.Memory; using SixLabors.ImageSharp.PixelFormats; -using SixLabors.Primitives; namespace SixLabors.ImageSharp.Advanced { /// /// Extension methods over Image{TPixel} /// - public static partial class ImageExtensions + public static class ImageExtensions { /// /// Gets the representation of the pixels as an area of contiguous memory in the given pixel format. @@ -28,7 +23,7 @@ namespace SixLabors.ImageSharp.Advanced => GetSpan(source); /// - /// Gets a representing the row 'y' beginning from the the first pixel on that row. + /// Gets the representation of the pixels as an area of contiguous memory at row 'y' beginning from the the first pixel on that row. /// /// The type of the pixel. /// The source. @@ -39,17 +34,17 @@ namespace SixLabors.ImageSharp.Advanced => GetSpan(source, row); /// - /// Gets the configuration. + /// Gets the configuration for the image. /// /// The Pixel format. /// The source image /// Returns the configuration. public static Configuration GetConfiguration(this Image source) where TPixel : struct, IPixel - => GetConfiguration(source); + => GetConfiguration((IConfigurable)source); /// - /// Gets the span. + /// Gets the span to the backing buffer. /// /// The type of the pixel. /// The source. @@ -59,7 +54,7 @@ namespace SixLabors.ImageSharp.Advanced => source.PixelBuffer.Span; /// - /// Gets the span. + /// Gets the span to the backing buffer at the given row. /// /// The type of the pixel. /// The source. @@ -72,7 +67,7 @@ namespace SixLabors.ImageSharp.Advanced => GetSpan(source.PixelBuffer, row); /// - /// Gets the span. + /// Gets the span to the backing buffer at the given row. /// /// The type of the pixel. /// The source.