From 76b60a70f09a84925f9c1c671cedaab4e7c71fc7 Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Sat, 16 Jun 2018 18:54:30 +0200 Subject: [PATCH] hide GetPixelMemory() and GetPixelRowMemory() for now --- .../Advanced/AdvancedImageExtensions.cs | 100 +++++++++--------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/src/ImageSharp/Advanced/AdvancedImageExtensions.cs b/src/ImageSharp/Advanced/AdvancedImageExtensions.cs index 1a435733f..18b1d994b 100644 --- a/src/ImageSharp/Advanced/AdvancedImageExtensions.cs +++ b/src/ImageSharp/Advanced/AdvancedImageExtensions.cs @@ -23,32 +23,6 @@ namespace SixLabors.ImageSharp.Advanced where TPixel : struct, IPixel => GetConfiguration((IConfigurable)source); - /// - /// Gets the representation of the pixels as a of contiguous memory in the source image's pixel format - /// stored in row major order. - /// - /// The Pixel format. - /// The source - /// The - public static Memory GetPixelMemory(this ImageFrame source) - where TPixel : struct, IPixel - { - return source.PixelBuffer.Buffer.Memory; - } - - /// - /// Gets the representation of the pixels as a of contiguous memory in the source image's pixel format - /// stored in row major order. - /// - /// The Pixel format. - /// The source - /// The - public static Memory GetPixelMemory(this Image source) - where TPixel : struct, IPixel - { - return source.Frames.RootFrame.GetPixelMemory(); - } - /// /// Gets the representation of the pixels as a of contiguous memory in the source image's pixel format /// stored in row major order. @@ -71,30 +45,6 @@ namespace SixLabors.ImageSharp.Advanced where TPixel : struct, IPixel => source.Frames.RootFrame.GetPixelSpan(); - /// - /// Gets the representation of the pixels as a of contiguous memory - /// at row beginning from the the first pixel on that row. - /// - /// The type of the pixel. - /// The source. - /// The row. - /// The - public static Memory GetPixelRowMemory(this ImageFrame source, int rowIndex) - where TPixel : struct, IPixel - => source.PixelBuffer.GetRowMemory(rowIndex); - - /// - /// Gets the representation of the pixels as of of contiguous memory - /// at row beginning from the the first pixel on that row. - /// - /// The type of the pixel. - /// The source. - /// The row. - /// The - public static Memory GetPixelRowMemory(this Image source, int rowIndex) - where TPixel : struct, IPixel - => source.Frames.RootFrame.GetPixelRowMemory(rowIndex); - /// /// Gets the representation of the pixels as a of contiguous memory /// at row beginning from the the first pixel on that row. @@ -145,6 +95,56 @@ namespace SixLabors.ImageSharp.Advanced where TPixel : struct, IPixel => ref source.Frames.RootFrame.DangerousGetPinnableReferenceToPixelBuffer(); + /// + /// Gets the representation of the pixels as a of contiguous memory in the source image's pixel format + /// stored in row major order. + /// + /// The Pixel format. + /// The source + /// The + internal static Memory GetPixelMemory(this ImageFrame source) + where TPixel : struct, IPixel + { + return source.PixelBuffer.Buffer.Memory; + } + + /// + /// Gets the representation of the pixels as a of contiguous memory in the source image's pixel format + /// stored in row major order. + /// + /// The Pixel format. + /// The source + /// The + internal static Memory GetPixelMemory(this Image source) + where TPixel : struct, IPixel + { + return source.Frames.RootFrame.GetPixelMemory(); + } + + /// + /// Gets the representation of the pixels as a of contiguous memory + /// at row beginning from the the first pixel on that row. + /// + /// The type of the pixel. + /// The source. + /// The row. + /// The + internal static Memory GetPixelRowMemory(this ImageFrame source, int rowIndex) + where TPixel : struct, IPixel + => source.PixelBuffer.GetRowMemory(rowIndex); + + /// + /// Gets the representation of the pixels as of of contiguous memory + /// at row beginning from the the first pixel on that row. + /// + /// The type of the pixel. + /// The source. + /// The row. + /// The + internal static Memory GetPixelRowMemory(this Image source, int rowIndex) + where TPixel : struct, IPixel + => source.Frames.RootFrame.GetPixelRowMemory(rowIndex); + /// /// Gets the assigned to 'source'. ///