PeachDrawing.Core
PeachDrawing.Core
PixelBuffer Struct
A decoded image’s pixels, tightly packed premultiplied RGBA8 (Width * Height * 4 bytes,
row-major, no padding) - what GetPixels() hands any Canvas
backend that needs to sample an image’s actual pixels (the raster backend; a third party’s own
backend), without that backend needing to know which concrete Image decoded them.
public readonly record struct PixelBuffer : System.IEquatable<PeachDrawing.Core.PixelBuffer>
Implements System.IEquatable<PixelBuffer>
| Constructors | |
|---|---|
| PixelBuffer(int, int, ReadOnlyMemory<byte>) | A decoded image’s pixels, tightly packed premultiplied RGBA8 (Width * Height * 4 bytes, row-major, no padding) - what GetPixels() hands any Canvas backend that needs to sample an image’s actual pixels (the raster backend; a third party’s own backend), without that backend needing to know which concrete Image decoded them. |