Table of Contents

Struct PremultipliedRgba8Image

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

An image of 8-bit RGBA pixels whose colors are multiplied by their alpha.

public readonly record struct PremultipliedRgba8Image : IEquatable<PremultipliedRgba8Image>
Implements
Inherited Members

Remarks

See mln_premultiplied_rgba8_image in the C API reference.

Constructors

PremultipliedRgba8Image(uint, uint, uint, ImmutableArray<byte>)

[SetsRequiredMembers]
public PremultipliedRgba8Image(uint Width, uint Height, uint Stride, ImmutableArray<byte> Pixels)

Parameters

Width uint
Height uint
Stride uint
Pixels ImmutableArray<byte>

Properties

Height

public required uint Height { get; init; }

Property Value

uint

Pixels

The rows of pixels, stride bytes apart, from the top row down.

public required ImmutableArray<byte> Pixels { get; init; }

Property Value

ImmutableArray<byte>

Stride

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

public required uint Stride { get; init; }

Property Value

uint

Width

public required uint Width { get; init; }

Property Value

uint