Java Code Examples for com.google.zxing.common.BitMatrix#flip()
The following examples show how to use
com.google.zxing.common.BitMatrix#flip() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DataMask.java From ZXing-Orient with Apache License 2.0 | 5 votes |
/** * <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); } } } }
Example 2
Source File: DataMask.java From analyzer-of-android-for-Apache-Weex with Apache License 2.0 | 5 votes |
/** * <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); } } } }
Example 3
Source File: DataMask.java From weex with Apache License 2.0 | 5 votes |
/** * <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); } } } }
Example 4
Source File: DataMask.java From reacteu-app with MIT License | 5 votes |
/** * <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); } } } }
Example 5
Source File: c.java From MiBandDecompiled with Apache License 2.0 | 5 votes |
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); } } } }
Example 6
Source File: DataMask.java From RipplePower with Apache License 2.0 | 3 votes |
/** * <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); } } } }
Example 7
Source File: DataMask.java From barterli_android with Apache License 2.0 | 3 votes |
/** * <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); } } } }
Example 8
Source File: DataMask.java From android-quick-response-code with Apache License 2.0 | 3 votes |
/** * <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); } } } }