Constructors

Methods

  • Parameters

    • data: Uint8Array

      Pixels encoded by encodeCanvas (byte is 8 pixels)

    Returns Uint8Array

    Array of indexes where every index stored in two bytes (big endian)

  • printDirection = "left" rotates image to 90 degrees clockwise

    Parameters

    • iData: ImageData
    • x: number
    • y: number
    • printDirection: PrintDirection = "left"

    Returns boolean