using IronBarCode;
// The value of the QR code as a string. Also suitable for URLS
string value = "https://ironsoftware.com/";
// Simplest example of creating a QR Code with no settings
GeneratedBarcode myQRCode = QRCodeWriter.CreateQrCode(value);
// Advanced example with all parameters exclusive to QR codes set:
// 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 to learn more about what QR version is
int qrVersion = 0;
GeneratedBarcode myQRCodeComplex = QRCodeWriter.CreateQrCode(value, size, correction, qrVersion);
Imports IronBarCode
' The value of the QR code as a string. Also suitable for URLS
Private value As String = "https://ironsoftware.com/"
' Simplest example of creating a QR Code with no settings
Private myQRCode As GeneratedBarcode = QRCodeWriter.CreateQrCode(value)
' Advanced example with all parameters exclusive to QR codes set:
' 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 to learn more about what QR version is
Private qrVersion As Integer = 0
Private myQRCodeComplex As GeneratedBarcode = QRCodeWriter.CreateQrCode(value, size, correction, qrVersion)