Alguém saberia me dizer como faço para colocar a versão 1 (21x21) no QR CODE?. Está saindo na versão 2 mas não consigo mudar.
try {
com.google.zxing.Writer qrCodeWriter = new QRCodeWriter();
Hashtable hintMap = new Hashtable();
hintMap.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.Q);
ByteMatrix byteMatrix = qrCodeWriter.encode(value, BarcodeFormat.QR_CODE, 150,
150, hintMap);
// Make the BufferedImage that are to hold the QRCode
int matrixWidth = byteMatrix.getWidth();
int matrixHeigth = byteMatrix.getHeight();
BufferedImage image = new BufferedImage(matrixWidth, matrixWidth, BufferedImage.TYPE_INT_ARGB); //BufferedImage.TYPE_INT_RGB);
Graphics2D graphics = image.createGraphics();
graphics.setColor(Color.WHITE);
graphics.fillRect(0, 0, matrixWidth, matrixWidth);
// Paint and save the image using the ByteMatrix
graphics.setColor(Color.BLACK);