Table of Contents

Class StyleImageOptions

Namespace
Maplibre.NativeFfi.Style
Assembly
Maplibre.NativeFfi.dll
public sealed record StyleImageOptions : IEquatable<StyleImageOptions>
Inheritance
StyleImageOptions
Implements
Inherited Members

Remarks

Compares and hashes by property value; keep an instance unmodified while it is a key in a hash-based collection.

Properties

Content

Content box used when icon-text-fit applies.

public ImageContent? Content { get; set; }

Property Value

ImageContent?

PixelRatio

public float? PixelRatio { get; set; }

Property Value

float?

Sdf

public bool? Sdf { get; set; }

Property Value

bool?

StretchX

Horizontally stretchable intervals. A present empty list stays distinguishable from an absent one. Assignment stores a snapshot the caller cannot mutate.

public IReadOnlyList<ImageStretch>? StretchX { get; set; }

Property Value

IReadOnlyList<ImageStretch>

StretchY

Vertically stretchable intervals. Assignment stores a snapshot.

public IReadOnlyList<ImageStretch>? StretchY { get; set; }

Property Value

IReadOnlyList<ImageStretch>

TextFitHeight

public StyleImageTextFit? TextFitHeight { get; set; }

Property Value

StyleImageTextFit?

TextFitWidth

public StyleImageTextFit? TextFitWidth { get; set; }

Property Value

StyleImageTextFit?

Methods

Equals(StyleImageOptions?)

Compares by property value, including list contents.

public bool Equals(StyleImageOptions? other)

Parameters

other StyleImageOptions

Returns

bool

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.