Browse Source

Update Span ->ReadOnlySpan

pull/567/head
Jason Nelson 8 years ago
parent
commit
a05b61835f
  1. 2
      src/ImageSharp/Image.LoadPixelData.cs

2
src/ImageSharp/Image.LoadPixelData.cs

@ -57,7 +57,7 @@ namespace SixLabors.ImageSharp
/// <param name="height">The height of the final image.</param>
/// <typeparam name="TPixel">The pixel format.</typeparam>
/// <returns>A new <see cref="Image{TPixel}"/>.</returns>
public static Image<TPixel> LoadPixelData<TPixel>(Span<byte> data, int width, int height)
public static Image<TPixel> LoadPixelData<TPixel>(ReadOnlySpan<byte> data, int width, int height)
where TPixel : struct, IPixel<TPixel>
=> LoadPixelData<TPixel>(Configuration.Default, data, width, height);

Loading…
Cancel
Save