MatrixUtil

Matrix utility.

class MatrixUtil {}

Members

Manifest constants

positionAdjustmentPattern
enum positionAdjustmentPattern;

Position adjustment pattern.

positionAdjustmentPatternCoordinateTable
enum positionAdjustmentPatternCoordinateTable;

Coordinates for position adjustment patterns for each version.

positionDetectionPattern
enum positionDetectionPattern;

Position detection pattern.

typeInfoCoordinates
enum typeInfoCoordinates;

Type information coordinates.

typeInfoMaskPattern
enum typeInfoMaskPattern;

Type information mask pattern.

typeInfoPoly
enum typeInfoPoly;

Type information polynomial.

versionInfoPoly
enum versionInfoPoly;

Version information polynomial.

Static functions

buildMatrix
void buildMatrix(ref BitArray dataBits, ErrorCorrectionLevel level, QrCodeVersion _version, int maskPattern, ref ByteMatrix matrix)

Builds a complete matrix.

calculateBchCode
int calculateBchCode(int value, int poly)

Calculates the BHC code for a value and a polynomial.

clearMatrix
void clearMatrix(ByteMatrix matrix)

Clears a given matrix.

embedBasicPatterns
void embedBasicPatterns(QrCodeVersion _version, ByteMatrix matrix)

Embeds basic patterns into a matrix.

embedDarkDotAtLeftBottomCorner
void embedDarkDotAtLeftBottomCorner(ByteMatrix matrix)

Embeds a dot at the left bottom corner.

embedDataBits
void embedDataBits(ref BitArray dataBits, int maskPattern, ByteMatrix matrix)

Embeds "dataBits" using "getMaskPattern".

embedHorizontalSeparationPattern
void embedHorizontalSeparationPattern(int xStart, int yStart, ByteMatrix matrix)

Embeds a single horizontal separation pattern.

embedPositionAdjustmentPattern
void embedPositionAdjustmentPattern(int xStart, int yStart, ByteMatrix matrix)

Embeds a single position adjustment pattern.

embedPositionDetectionPattern
void embedPositionDetectionPattern(int xStart, int yStart, ByteMatrix matrix)

Embeds a single position detection pattern into a byte matrix.

embedPositionDetectionPatternsAndSeparators
void embedPositionDetectionPatternsAndSeparators(ByteMatrix matrix)

Embeds position detection patterns and separators into a byte matrix.

embedTimingPatterns
void embedTimingPatterns(ByteMatrix matrix)

Embeds timing patterns into a matrix.

embedTypeInfo
void embedTypeInfo(ErrorCorrectionLevel level, int maskPattern, ref ByteMatrix matrix)

Embeds type information into a matrix.

embedVerticalSeparationPattern
void embedVerticalSeparationPattern(int xStart, int yStart, ByteMatrix matrix)

Embeds a single vertical separation pattern.

findMsbSet
int findMsbSet(int value)

Finds and MSB set.

makeTypeInfoBits
void makeTypeInfoBits(ErrorCorrectionLevel level, int maskPattern, ref BitArray bits)

Generates type information bits and appends them to a bit array.

makeVersionInfoBits
void makeVersionInfoBits(QrCodeVersion _version, BitArray bits)

Generates version information bits and appends them to a bit array.

maybeEmbedPositionAdjustmentPatterns
void maybeEmbedPositionAdjustmentPatterns(QrCodeVersion _version, ByteMatrix matrix)

Embeds position adjustment patterns if required.

maybeEmbedVersionInfo
void maybeEmbedVersionInfo(QrCodeVersion _version, ByteMatrix matrix)

Embeds version information if required.

Meta