Bitmap(Memory, Int32, Int32, Int32) Constructor

Definition

Assembly Broadside.Rendering.dll

Initializes a new instance of the Bitmap class over memory the caller owns; its contents are kept.

public Bitmap(Memory<byte> pixels, int width, int height, int stride)

Parameters

pixels
Memory<Byte>

At least (height − 1) × stride + width × 4 bytes.

width
Int32

The width in pixels, at least 1.

height
Int32

The height in pixels, at least 1.

stride
Int32

The bytes from the start of one row to the start of the next, at least width × 4.