|
|
@ -143,7 +143,7 @@ namespace SixLabors.ImageSharp.Advanced |
|
|
/// <param name="source">The source.</param>
|
|
|
/// <param name="source">The source.</param>
|
|
|
/// <param name="rowIndex">The row.</param>
|
|
|
/// <param name="rowIndex">The row.</param>
|
|
|
/// <returns>The <see cref="Span{TPixel}"/></returns>
|
|
|
/// <returns>The <see cref="Span{TPixel}"/></returns>
|
|
|
public static Memory<TPixel> GetPixelRowMemory<TPixel>(this ImageFrame<TPixel> source, int rowIndex) |
|
|
public static Memory<TPixel> DangerousGetPixelRowMemory<TPixel>(this ImageFrame<TPixel> source, int rowIndex) |
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
{ |
|
|
{ |
|
|
Guard.NotNull(source, nameof(source)); |
|
|
Guard.NotNull(source, nameof(source)); |
|
|
@ -161,7 +161,7 @@ namespace SixLabors.ImageSharp.Advanced |
|
|
/// <param name="source">The source.</param>
|
|
|
/// <param name="source">The source.</param>
|
|
|
/// <param name="rowIndex">The row.</param>
|
|
|
/// <param name="rowIndex">The row.</param>
|
|
|
/// <returns>The <see cref="Span{TPixel}"/></returns>
|
|
|
/// <returns>The <see cref="Span{TPixel}"/></returns>
|
|
|
public static Memory<TPixel> GetPixelRowMemory<TPixel>(this Image<TPixel> source, int rowIndex) |
|
|
public static Memory<TPixel> DangerousGetPixelRowMemory<TPixel>(this Image<TPixel> source, int rowIndex) |
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
{ |
|
|
{ |
|
|
Guard.NotNull(source, nameof(source)); |
|
|
Guard.NotNull(source, nameof(source)); |
|
|
|