Crear código QR
En IronBarcode, la clase QRCodeWriter
tiene un método CreateQrCode
que permite generar un código QR con alta precisión y corrección de errores.
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
En IronBarcode, la clase QRCodeWriter
tiene un método CreateQrCode
que permite generar un código QR con alta precisión y corrección de errores.
9 productos API .NET para sus documentos de oficina