Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
92ab411
Expose LoadPixelData overloads accepting Span<T>
iamcarbon May 9, 2018
cddab85
Cleanup ByteExtensions
iamcarbon May 9, 2018
54791bf
Remove trailing whitespace
iamcarbon May 9, 2018
c6c9ae8
Simplify png decoder
iamcarbon May 9, 2018
1653a93
Simplify GifDecoder
iamcarbon May 9, 2018
ea38b24
Remove ByteExtensions
iamcarbon May 9, 2018
bddc20a
Simplfiy ToRgbaHex
iamcarbon May 9, 2018
1c79b08
Merge branch 'master' into memory-rc1
iamcarbon May 9, 2018
5156890
👮
iamcarbon May 9, 2018
15494b4
Merge branch 'memory-rc1' of https://github.com/carbon/ImageSharp int…
iamcarbon May 9, 2018
00af2df
Rename Gaurd.NotNullOrEmpty to NotNullOrWhiteSpace to match behavior …
iamcarbon May 10, 2018
eb318a3
Don't use Linq to check if IEnumerable is empty.
iamcarbon May 10, 2018
fd766a5
React to Gaurd changes
iamcarbon May 10, 2018
017c7fb
Verify ColorBuilder throws on null and empty
iamcarbon May 10, 2018
fda2d1f
Optimize ColorBuilder
iamcarbon May 10, 2018
4f779ca
Improve ColorBuilder test coverage
iamcarbon May 10, 2018
46e0a85
Allow leading period in FindFormatByFileExtension
iamcarbon May 10, 2018
202e472
Use ReadOnlySpans in LoadPixelData
iamcarbon May 10, 2018
45e5d5b
Allow pixel data to be saved directly to a span
iamcarbon May 10, 2018
09a77e4
Merge branch 'master' into memory-rc1
antonfirsov May 10, 2018
a05b618
Update Span ->ReadOnlySpan
iamcarbon May 11, 2018
92f353b
Tidy up ImageExtension docs
iamcarbon May 11, 2018
1695b59
Update three more spans to ReadOnly
iamcarbon May 11, 2018
63dc698
Merge branch 'memory-rc1' of https://github.com/carbon/ImageSharp int…
iamcarbon May 11, 2018
93c44f4
React to LoadPixelData change
iamcarbon May 11, 2018
05aa089
Merge branch 'master' into memory-rc1
JimBobSquarePants May 12, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Span ->ReadOnlySpan
  • Loading branch information
iamcarbon committed May 11, 2018
commit a05b61835f7390ac647960575b2a93fd29fe4932
2 changes: 1 addition & 1 deletion src/ImageSharp/Image.LoadPixelData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static Image<TPixel> LoadPixelData<TPixel>(byte[] data, int width, int he
/// <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);

Expand Down