SDK JS
    Preparing search index...

    Interface JxlImageData

    A decoded JPEG XL image: RGBA8 pixels plus dimensions and alpha metadata. Returned by JxlDecoder.decode.

    interface JxlImageData {
        hasAlpha: boolean;
        height: number;
        premultipliedAlpha: boolean;
        rgba: Uint8Array;
        width: number;
    }
    Index

    Properties

    hasAlpha: boolean

    Whether the source stream carries an alpha channel. The rgba buffer is always 4 channels (RGBA8) regardless of this flag.

    height: number

    Image height in pixels.

    premultipliedAlpha: boolean

    Whether the rgba colour channels are already multiplied by alpha (associated / premultiplied alpha) rather than straight alpha.

    rgba: Uint8Array

    Decoded pixels as 8-bit RGBA, row-major from the top-left, length width * height * 4 (4 bytes per pixel).

    width: number

    Image width in pixels.