Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BitMatrixParser

author

Sean Owen

Hierarchy

  • BitMatrixParser

Index

Constructors

constructor

Properties

Private bitMatrix

bitMatrix: BitMatrix

Private isMirror

isMirror: boolean

Private parsedFormatInfo

parsedFormatInfo: FormatInformation

Private parsedVersion

parsedVersion: Version

Methods

Private copyBit

  • copyBit(i: number, j: number, versionBits: number): number

mirror

  • mirror(): void

readCodewords

  • readCodewords(): Uint8Array
  • Reads the bits in the BitMatrix representing the finder pattern in the correct order in order to reconstruct the codewords bytes contained within the QR Code.

    throws

    FormatException if the exact number of bytes expected is not read

    Returns Uint8Array

    bytes encoded within the QR Code

readFormatInformation

readVersion

  • Reads version information from one of its two locations within the QR Code.

    throws

    FormatException if both version information locations cannot be parsed as the valid encoding of version information

    Returns Version

    Version encapsulating the QR Code's version

remask

  • remask(): void

setMirror

  • setMirror(isMirror: boolean): void
  • Prepare the parser for a mirrored operation. This flag has effect only on the {@link #readFormatInformation()} and the {@link #readVersion()}. Before proceeding with {@link #readCodewords()} the {@link #mirror()} method should be called.

    Parameters

    • isMirror: boolean

    Returns void

Generated using TypeDoc