📌  相关文章
📜  java代码示例中的二维码生成器

📅  最后修改于: 2022-03-11 14:52:20.884000             🧑  作者: Mango

代码示例1
public static BufferedImage generateQRCodeImage(String barcodeText) throws Exception {
    QRCodeWriter barcodeWriter = new QRCodeWriter();
    BitMatrix bitMatrix = 
      barcodeWriter.encode(barcodeText, BarcodeFormat.QR_CODE, 200, 200);

    return MatrixToImageWriter.toBufferedImage(bitMatrix);
}