plate-engine - v0.1.0
    Preparing search index...

    Function encodeBMP

    • Encode tone indices and their palette as a BMP. The palette must fit the bit depth: up to 2 colours at 1 bit, 16 at 4, 256 at 8.

      Parameters

      • indices: Uint8Array
      • width: number
      • height: number
      • palette: Palette
      • bits: BmpBits

      Returns Uint8Array