TBitMatrixParser Class

Definition

Delphi
type TBitMatrixParser = class(TObject)
Inheritance
TObject
TBitMatrixParser

Constructors

Properties

Methods

extractDataRegion(TBitMatrix)

Extracts the data region from a BitMatrix that contains alignment patterns.

Original BitMatrix with alignment patterns BitMatrix that has the alignment patterns removed

readCodewords

Reads the bits in the BitMatrix representing the mapping matrix (No alignment patterns) in the correct order in order to reconstitute the codewords bytes contained within the Data Matrix Code.

bytes encoded within the Data Matrix Code if the exact number of bytes expected is not read

readCorner1(Integer, Integer)

Reads the 8 bits of the special corner condition 1.

See ISO 16022:2006, Figure F.3

Number of rows in the mapping matrix Number of columns in the mapping matrix byte from the Corner condition 1

readCorner2(Integer, Integer)

Reads the 8 bits of the special corner condition 2.

See ISO 16022:2006, Figure F.4

Number of rows in the mapping matrix Number of columns in the mapping matrix byte from the Corner condition 2

readCorner3(Integer, Integer)

Reads the 8 bits of the special corner condition 3.

See ISO 16022:2006, Figure F.5

Number of rows in the mapping matrix Number of columns in the mapping matrix byte from the Corner condition 3

readCorner4(Integer, Integer)

Reads the 8 bits of the special corner condition 4.

See ISO 16022:2006, Figure F.6

Number of rows in the mapping matrix Number of columns in the mapping matrix byte from the Corner condition 4

readModule(Integer, Integer, Integer, Integer)

Reads a bit of the mapping matrix accounting for boundary wrapping.

Row to read in the mapping matrix Column to read in the mapping matrix Number of rows in the mapping matrix Number of columns in the mapping matrix value of the given bit in the mapping matrix

readUtah(Integer, Integer, Integer, Integer)

Reads the 8 bits of the standard Utah-shaped pattern.

See ISO 16022:2006, 5.8.1 Figure 6

Current row in the mapping matrix, anchored at the 8th bit (LSB) of the pattern Current column in the mapping matrix, anchored at the 8th bit (LSB) of the pattern Number of rows in the mapping matrix Number of columns in the mapping matrix byte from the utah shape

readVersion(TBitMatrix)

Creates the version object based on the dimension of the original bit matrix from the datamatrix code.

See ISO 16022:2006 Table 7 - ECC 200 symbol attributes

Original BitMatrix including alignment patterns Version encapsulating the Data Matrix Code's "version" if the dimensions of the mapping matrix are not valid Data Matrix dimensions.

Fields