private void EmbedAlignmentPattern(ByteMatrix matrix, int version, MaskPatternType patterntype) { matrix.Clear(-1); MatrixUtil.embedBasicPatterns(version, matrix); MatrixUtil.embedTypeInfo(ErrorCorrectionLevelInternal.H, (int)patterntype, 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. internal static void clearMatrix(ByteMatrix matrix) { matrix.Clear(-1); }
// 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); }
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); }