简体   繁体   中英

Font file to print QRCode in vb.net

I need to generate and print QRCode in vb.net, I would like to to know any font file is available which can handle this process automatically.

you can use QRCode package to generate QRCode image

install the package: Install-Package QRCoder

usage:

Dim qrGenerator As QRCodeGenerator = New QRCodeGenerator()
Dim qrCodeData As QRCodeData = qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q)
Dim qrCode As QRCode = New QRCode(qrCodeData)
Dim qrCodeImage As Bitmap = qrCode.GetGraphic(20)

Using ms As MemoryStream = New MemoryStream
    qrCodeImage.Save("image file location", ImageFormat.Bmp)
End Using

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM