Create QR Code
In IronBarcode, the QRCodeWriter
class has a CreateQrCode
method that has allows you to generate a QR code with high accuracy and error correction.
using IronBarCode; // Simplest example of creating a QR Code with no settings: GeneratedBarcode myQRCode = QRCodeWriter.CreateQrCode("https://ironsoftware.com/"); // Advanced Example to set all parameters: // The value of the QR code as a string. Also suitable for URLS. string value = "https://ironsoftware.com/"; // The error correction level of the QR code. var correction = QRCodeWriter.QrErrorCorrectionLevel.Highest; // The width and height of the QR code in pixels. int size = 500; // QR Version. Please read https://www.qrcode.com/en/about/version.html int qrVersion = 0; GeneratedBarcode myQRCodeComplex = QRCodeWriter.CreateQrCode(value, size, correction, qrVersion);
Imports IronBarCode ' Simplest example of creating a QR Code with no settings: Private myQRCode As GeneratedBarcode = QRCodeWriter.CreateQrCode("https://ironsoftware.com/") ' Advanced Example to set all parameters: ' The value of the QR code as a string. Also suitable for URLS. Private value As String = "https://ironsoftware.com/" ' The error correction level of the QR code. Private correction = QRCodeWriter.QrErrorCorrectionLevel.Highest ' The width and height of the QR code in pixels. Private size As Integer = 500 ' QR Version. Please read https://www.qrcode.com/en/about/version.html Private qrVersion As Integer = 0 Private myQRCodeComplex As GeneratedBarcode = QRCodeWriter.CreateQrCode(value, size, correction, qrVersion)
Install-Package BarCode
In IronBarcode, the QRCodeWriter
class has a CreateQrCode
method that has allows you to generate a QR code with high accuracy and error correction.
9 .NET API products for your office documents