com.google.zxing.common.BitMatrix#flip ( )源码实例Demo

下面列出了com.google.zxing.common.BitMatrix#flip ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: ZXing-Orient   文件: DataMask.java
/**
 * <p>Implementations of this method reverse the data masking process applied to a QR Code and
 * make its bits ready to read.</p>
 *
 * @param bits representation of QR Code bits
 * @param dimension dimension of QR Code, represented by bits, being unmasked
 */
final 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);
      }
    }
  }
}
 
/**
 * <p>Implementations of this method reverse the data masking process applied to a QR Code and
 * make its bits ready to read.</p>
 *
 * @param bits representation of QR Code bits
 * @param dimension dimension of QR Code, represented by bits, being unmasked
 */
final 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);
      }
    }
  }
}
 
源代码3 项目: weex   文件: DataMask.java
/**
 * <p>Implementations of this method reverse the data masking process applied to a QR Code and
 * make its bits ready to read.</p>
 *
 * @param bits representation of QR Code bits
 * @param dimension dimension of QR Code, represented by bits, being unmasked
 */
final 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);
      }
    }
  }
}
 
源代码4 项目: reacteu-app   文件: DataMask.java
/**
 * <p>Implementations of this method reverse the data masking process applied to a QR Code and
 * make its bits ready to read.</p>
 *
 * @param bits representation of QR Code bits
 * @param dimension dimension of QR Code, represented by bits, being unmasked
 */
final 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);
      }
    }
  }
}
 
源代码5 项目: MiBandDecompiled   文件: c.java
final void a(BitMatrix bitmatrix, int i1)
{
    for (int j1 = 0; j1 < i1; j1++)
    {
        for (int k1 = 0; k1 < i1; k1++)
        {
            if (a(j1, k1))
            {
                bitmatrix.flip(k1, j1);
            }
        }

    }

}
 
源代码6 项目: RipplePower   文件: DataMask.java
/**
 * <p>
 * Implementations of this method reverse the data masking process applied
 * to a QR Code and make its bits ready to read.
 * </p>
 * 
 * @param bits
 *            representation of QR Code bits
 * @param dimension
 *            dimension of QR Code, represented by bits, being unmasked
 */
final 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);
			}
		}
	}
}
 
源代码7 项目: barterli_android   文件: DataMask.java
/**
 * <p>
 * Implementations of this method reverse the data masking process applied
 * to a QR Code and make its bits ready to read.
 * </p>
 * 
 * @param bits
 *            representation of QR Code bits
 * @param dimension
 *            dimension of QR Code, represented by bits, being unmasked
 */
final 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);
            }
        }
    }
}
 
源代码8 项目: android-quick-response-code   文件: DataMask.java
/**
 * <p>
 * Implementations of this method reverse the data masking process applied
 * to a QR Code and make its bits ready to read.
 * </p>
 * 
 * @param bits
 *            representation of QR Code bits
 * @param dimension
 *            dimension of QR Code, represented by bits, being unmasked
 */
final 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);
            }
        }
    }
}