I\'m using com.google.zxing.qrcode.QRCodeWriter to encode data and com.google.zxing.client.j2se.MatrixToImageWriter to generate the QR Code image. On a
com.google.zxing.qrcode.QRCodeWriter
com.google.zxing.client.j2se.MatrixToImageWriter
HashMap hintMap = new HashMap(); hintMap.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.Q); hintMap.put(EncodeHintType.MARGIN, -1);
no margin
UPDATE
Add dependencies (from comments)
com.google.zxing core 3.2.0 jar com.google.zxing javase 3.2.0