Skip to content
Merged
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion ScreenCapture.NET/Model/Image.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public void CopyTo(in Span<byte> destination)
if (destination == null) throw new ArgumentNullException(nameof(destination));
if (destination.Length < SizeInBytes) throw new ArgumentException("The destination is too small to fit this image.", nameof(destination));

_buffer.AsSpan(_start, SizeInBytes).CopyTo(destination);
MemoryMarshal.Cast<byte, TColor>(_buffer).Slice(_start, _length).CopyTo(MemoryMarshal.Cast<byte, TColor>(destination));
}

/// <inheritdoc />
Expand Down