Ejemplo n.º 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);
 }
Ejemplo n.º 2
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.
 internal static void clearMatrix(ByteMatrix matrix)
 {
     matrix.Clear(-1);
 }
Ejemplo n.º 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);
 }
 private void EmbedAlignmentPattern(ByteMatrix matrix, int version)
 {
     matrix.Clear(-1);
     MatrixUtil.embedBasicPatterns(version, matrix);
 }
Ejemplo n.º 5
0
 private void EmbedAlignmentPattern(ByteMatrix matrix, int version, BitVector codewords)
 {
     matrix.Clear(-1);
     MatrixUtil.embedBasicPatterns(version, matrix);
     MatrixUtil.embedDataBits(codewords, -1, matrix);
 }
 // 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);
 }