Table of Contents

Class StyleImageInfo

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

An image in the map's style.

public sealed record StyleImageInfo : IEquatable<StyleImageInfo>
Inheritance
StyleImageInfo
Implements
Inherited Members

Remarks

See mln_style_image_info in the C API reference.

Properties

Content

public ImageContent? Content { get; init; }

Property Value

ImageContent?

Height

public uint Height { get; init; }

Property Value

uint

KeepUnused

public bool KeepUnused { get; init; }

Property Value

bool

PixelRatio

public float PixelRatio { get; init; }

Property Value

float

Pixels

The premultiplied RGBA pixels, in rows of width * 4 bytes, from the top row down.

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

Property Value

ImmutableArray<byte>

Sdf

public bool Sdf { get; init; }

Property Value

bool

StretchX

public ImmutableArray<ImageStretch> StretchX { get; init; }

Property Value

ImmutableArray<ImageStretch>

StretchY

public ImmutableArray<ImageStretch> StretchY { get; init; }

Property Value

ImmutableArray<ImageStretch>

TextFitHeight

public StyleImageTextFit? TextFitHeight { get; init; }

Property Value

StyleImageTextFit?

TextFitWidth

public StyleImageTextFit? TextFitWidth { get; init; }

Property Value

StyleImageTextFit?

Width

public uint Width { get; init; }

Property Value

uint