mirror of https://github.com/status-im/qzxing.git
Fixed mirrored data in Qr code encoding by inverting indexes as suggested by #77
This commit is contained in:
parent
9c361587a4
commit
669a9b5d7a
|
@ -514,7 +514,7 @@ QImage QZXing::encodeData(const QString& data,
|
|||
image = QImage(bytesRef->getWidth(), bytesRef->getHeight(), QImage::Format_ARGB32);
|
||||
for(int i=0; i<bytesRef->getWidth(); i++)
|
||||
for(int j=0; j<bytesRef->getHeight(); j++)
|
||||
image.setPixel(i, j, bytes[i][j] ?
|
||||
image.setPixel(i, j, bytes[j][i] ?
|
||||
qRgb(0,0,0) :
|
||||
qRgb(255,255,255));
|
||||
|
||||
|
|
Loading…
Reference in New Issue