@blockchaincommons/multipart-ur - v1.0.0-beta.3
    Preparing search index...

    Class RenderedImage

    A rendered QR code: an RGBA raster with PNG and JPEG encoders.

    Implements

    Index
    width: number

    Width in pixels.

    height: number

    Height in pixels.

    pixels: Uint8Array

    The RGBA pixels, row-major, width * height * 4 bytes.

    • PNG bytes (RGBA, 8-bit).

      Returns Uint8Array

    • JPEG bytes at quality, an integer 0–255 clamped to 1–100 as the reference's encoder clamps it (default 90). Alpha is dropped.

      Parameters

      • options: { quality?: number } = {}

      Returns Uint8Array