mirror of
https://github.com/DarthAffe/ScreenCapture.NET.git
synced 2026-11-10 19:06:31 +00:00
Fixed ImageRow.CopyTo
This commit is contained in:
1 parent
b6132a4ee3
commit
2447747385
1 file changed
+1
-1
@@ -269,7 +269,7 @@ public sealed class Image<TColor> : IImage
|
||||
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 />
|
||||
|
||||
Reference in new issue
Block a user