Exemple #1
0
 /// <summary>
 /// <p>Implementations of this method reverse the data masking process applied to a QR Code and
 /// make its bits ready to read.</p>
 /// </summary>
 /// <param name="bits"> representation of QR Code bits </param>
 /// <param name="dimension"> dimension of QR Code, represented by bits, being unmasked </param>
 internal void unmaskBitMatrix(BitMatrix bits, int dimension)
 {
     for (int i = 0; i < dimension; i++)
     {
         for (int j = 0; j < dimension; j++)
         {
             if (isMasked(i, j))
             {
                 bits.flip(j, i);
             }
         }
     }
 }
 /// <summary>
 /// <p>Implementations of this method reverse the data masking process applied to a QR Code and
 /// make its bits ready to read.</p>
 /// </summary>
 /// <param name="bits"> representation of QR Code bits </param>
 /// <param name="dimension"> dimension of QR Code, represented by bits, being unmasked </param>
 internal void unmaskBitMatrix(BitMatrix bits, int dimension)
 {
     for (int i = 0; i < dimension; i++)
     {
       for (int j = 0; j < dimension; j++)
       {
     if (isMasked(i, j))
     {
       bits.flip(j, i);
     }
       }
     }
 }