@dusrel/image API
    Preparing search index...

    Function decode

    • Decodes PNG bytes into an ImageData (always RGBA8; the Rust glue converts palette/grey/RGB sources). The glue returns an 8-byte little-endian width/height prefix followed by RGBA bytes.

      Parameters

      • data: ArrayBuffer | Uint8Array<ArrayBufferLike>

      Returns Promise<ImageData>