Updated on 2026-08-14

This commit is contained in:
Tangem 2018-07-06 16:48:40 +03:00
parent 248381a954
commit b903dbb8f5
7 changed files with 20 additions and 62 deletions

View file

@ -31,25 +31,4 @@ object UtilHelper {
return bmp
}
// private static Bitmap generateQrCode(String myCodeText) throws WriterException {
// Hashtable<EncodeHintType, ErrorCorrectionLevel> hintMap = new Hashtable<>();
// hintMap.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.H); // H = 30% damage
//
// QRCodeWriter qrCodeWriter = new QRCodeWriter();
//
// int size = 256;
//
// BitMatrix bitMatrix = qrCodeWriter.encode(myCodeText, BarcodeFormat.QR_CODE, size, size, hintMap);
// int width = bitMatrix.getWidth();
// Bitmap bmp = Bitmap.createBitmap(width, width, Bitmap.Config.RGB_565);
// for (int x = 0; x < width; x++) {
// for (int y = 0; y < width; y++) {
// bmp.setPixel(y, x, bitMatrix.get(x, y) ? Color.BLACK : Color.WHITE);
// }
// }
// return bmp;
// }
}