@maplibre/native-ffi
    Preparing search index...

    Interface StyleImageInfo

    One complete runtime style image, borrowed for a completion callback.

    See mln_style_image_info in the C API reference.

    interface StyleImageInfo {
        content?: ImageContent;
        height: number;
        pixelRatio: number;
        pixels: Uint8Array;
        sdf: boolean;
        stretchX: readonly ImageStretch[];
        stretchY: readonly ImageStretch[];
        textFitHeight?: StyleImageTextFit;
        textFitWidth?: StyleImageTextFit;
        width: number;
    }
    Index
    content?: ImageContent

    Content box, when the image sets one.

    height: number

    Image height in pixels.

    pixelRatio: number

    Sprite pixel ratio.

    pixels: Uint8Array

    Premultiplied RGBA8 pixels in tightly packed rows of width * 4 bytes, top row first.

    sdf: boolean

    Whether the image is a signed distance field icon.

    stretchX: readonly ImageStretch[]

    Horizontally stretchable intervals.

    stretchY: readonly ImageStretch[]

    Vertically stretchable intervals.

    textFitHeight?: StyleImageTextFit

    How the image fits text vertically, when it sets this.

    textFitWidth?: StyleImageTextFit

    How the image fits text horizontally, when it sets this.

    width: number

    Image width in pixels.