Class StyleImageOptions
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
Options for a style image, as the sprite spec describes them.
public sealed record StyleImageOptions : IEquatable<StyleImageOptions>
- Inheritance
-
StyleImageOptions
- Implements
- Inherited Members
Remarks
See mln_style_image_options in the C API reference.
Properties
Content
public ImageContent? Content { get; init; }
Property Value
KeepUnused
Keeps the image after no layer uses it. Without this, the map can remove
an image that it asked for through
RuntimeEventType.MapStyleImageMissing.
public bool? KeepUnused { get; init; }
Property Value
- bool?
PixelRatio
public float? PixelRatio { get; init; }
Property Value
Sdf
public bool? Sdf { get; init; }
Property Value
- bool?
StretchX
The ranges of columns that stretch, in increasing order without overlap.
public ImmutableArray<ImageStretch>? StretchX { get; init; }
Property Value
StretchY
The ranges of rows that stretch, in increasing order without overlap.
public ImmutableArray<ImageStretch>? StretchY { get; init; }
Property Value
TextFitHeight
public StyleImageTextFit? TextFitHeight { get; init; }
Property Value
TextFitWidth
public StyleImageTextFit? TextFitWidth { get; init; }