Class QRMatrix
Inheritance
System.Object
QRMatrix
Implements
System.Collections.Generic.IEnumerable<System.Byte>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.Media.dll
public class QRMatrix : Matrix2D<byte>, IEnumerable<byte>, IEnumerable, IEquatable<MatrixBase<byte>>
Constructors
Declaration
public QRMatrix(int width, int height)
Parameters
Type |
Name |
Description |
System.Int32 |
width |
|
System.Int32 |
height |
|
Fields
Declaration
protected const int MASK_PATTERNS_QTY = 8
Field Value
Type |
Description |
System.Int32 |
|
Methods
Declaration
public void AddBasicPatterns(QRVersion version)
Parameters
Declaration
public void AddTypeInfo(QRCorrectionLevel ecLevel, int maskPattern)
Parameters
Declaration
public void AddVersionInfoIfRequired(QRVersion version)
Parameters
Declaration
public static int CalculateBCHCode(int value, int poly)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
System.Int32 |
poly |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public static int CalculateMSBSet(int valueRenamed)
Parameters
Type |
Name |
Description |
System.Int32 |
valueRenamed |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
Declaration
public void FormMatrix(BitList dataBits, QRCorrectionLevel correctionLevel, QRVersion version, int maskPattern)
Parameters
Declaration
public static void GenerateTypeInfoBits(BitList bits, QRCorrectionLevel correctionLevel, int maskPattern)
Parameters
Declaration
public static void GenerateVersionInfoBits(BitList bits, QRVersion version)
Parameters
Declaration
public bool GetDataMaskBit(int maskPattern, int x, int y)
Parameters
Type |
Name |
Description |
System.Int32 |
maskPattern |
|
System.Int32 |
x |
|
System.Int32 |
y |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public int GetMaskPenalty()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public int GetMaskPenaltyRule1()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public int GetMaskPenaltyRule2()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public int GetMaskPenaltyRule3()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public int GetMaskPenaltyRule4()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public void InsertDataBits(BitList dataBits, int maskPattern)
Parameters
Type |
Name |
Description |
BitList |
dataBits |
|
System.Int32 |
maskPattern |
|
Declaration
protected static bool IsValidMaskPattern(int maskPattern)
Parameters
Type |
Name |
Description |
System.Int32 |
maskPattern |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
Azos.Collections.Matrix2DBase<System.Byte>.ToString()
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IEquatable<T>
Extension Methods