コード例 #1
0
 private void EmbedAlignmentPattern(ByteMatrix matrix, int version, MaskPatternType patterntype)
 {
     matrix.Clear(-1);
     MatrixUtil.embedBasicPatterns(version, matrix);
     MatrixUtil.embedTypeInfo(ErrorCorrectionLevelInternal.H, (int)patterntype, matrix);
 }
コード例 #2
0
ファイル: MatrixUtil.cs プロジェクト: quocthang0507/WinForm
 // Set all cells to -1.  -1 means that the cell is empty (not set yet).
 //
 // JAVAPORT: We shouldn't need to do this at all. The code should be rewritten to begin encoding
 // with the ByteMatrix initialized all to zero.
 internal static void clearMatrix(ByteMatrix matrix)
 {
     matrix.Clear(-1);
 }
コード例 #3
0
 // Set all cells to -1.  -1 means that the cell is empty (not set yet).
 //
 // JAVAPORT: We shouldn't need to do this at all. The code should be rewritten to begin encoding
 // with the ByteMatrix initialized all to zero.
 public static void ClearMatrix(ByteMatrix matrix)
 {
     matrix.Clear((byte)0xff);
 }
コード例 #4
0
 private void EmbedAlignmentPattern(ByteMatrix matrix, int version)
 {
     matrix.Clear(-1);
     MatrixUtil.embedBasicPatterns(version, matrix);
 }
コード例 #5
0
 private void EmbedAlignmentPattern(ByteMatrix matrix, int version, BitVector codewords)
 {
     matrix.Clear(-1);
     MatrixUtil.embedBasicPatterns(version, matrix);
     MatrixUtil.embedDataBits(codewords, -1, matrix);
 }
コード例 #6
0
 // Set all cells to -1.  -1 means that the cell is empty (not set yet).
 //
 // JAVAPORT: We shouldn't need to do this at all. The code should be rewritten to begin encoding
 // with the ByteMatrix initialized all to zero.
 public static void ClearMatrix(ByteMatrix matrix)
 {
     matrix.Clear(-1);
 }