PeachImage

PeachImage.Image

Image.GetRowSpan(int) Method

Gets a zero-copy view of a single scanline.

public System.Span<byte> GetRowSpan(int y);

Parameters

y System.Int32

Returns

System.Span<System.Byte>

Exceptions

System.ObjectDisposedException
This image has been disposed.

System.InvalidOperationException
This image was produced by Frames and a later frame has since been pulled from the same enumeration — see the Frames remarks for the frame-validity contract.