TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ImagePixels

    Raw row-major RGBA pixel bytes in the shape of a DOM ImageData. deriveMapColorsFromImage accepts them, so you can theme an image decoded elsewhere (a worker, a test) without a canvas.

    type ImagePixels = {
        data: Uint8ClampedArray | Uint8Array | number[];
        height: number;
        width: number;
    }
    Index
    data: Uint8ClampedArray | Uint8Array | number[]
    height: number
    width: number