Browse Source

Remove note

The explict cast doesn't work as expected
af/merge-core
Jason Nelson 8 years ago
parent
commit
c512b9d4bc
  1. 2
      src/ImageSharp/Image.LoadPixelData.cs

2
src/ImageSharp/Image.LoadPixelData.cs

@ -98,8 +98,6 @@ namespace SixLabors.ImageSharp
public static Image<TPixel> LoadPixelData<TPixel>(Configuration config, TPixel[] data, int width, int height) public static Image<TPixel> LoadPixelData<TPixel>(Configuration config, TPixel[] data, int width, int height)
where TPixel : struct, IPixel<TPixel> where TPixel : struct, IPixel<TPixel>
{ {
// There's an implict cast to Span from Array
// Should we remove this overload and expose Span<TPixel> ?
return LoadPixelData(config, new Span<TPixel>(data), width, height); return LoadPixelData(config, new Span<TPixel>(data), width, height);
} }

Loading…
Cancel
Save