PeachDrawing.Core

PeachDrawing.Core.PixelBuffer

PixelBuffer(int, int, ReadOnlyMemory<byte>) Constructor

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 PixelBuffer(int Width, int Height, System.ReadOnlyMemory<byte> PremultipliedRgba);

Parameters

Width System.Int32

Height System.Int32

PremultipliedRgba System.ReadOnlyMemory<System.Byte>