PeachImage

PeachImage.Image

Image.PixelMemory Property

Gets the entire tightly-packed pixel buffer as System.Memory<>, for async/non-span consumers.

public System.Memory<byte> PixelMemory { get; }

Property Value

System.Memory<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.