Styliser le code QR
Dans IronBarcode, les codes QR peuvent avoir des logos ajoutés, des couleurs modifiées, du texte d'annotation imprimé et des marges définies.
Explorez des styles de codes QR personnalisés et améliorez votre design !
using IronBarCode;
using IronSoftware.Drawing;
GeneratedBarcode myQRCode = QRCodeWriter.CreateQrCode("https://ironsoftware.com/");
// Add annotation text above the barcode
myQRCode.AddAnnotationTextAboveBarcode("Your code is: " + myQRCode.Value).SaveAsPng("ironsoftware.png");
// You may add styling with color or logos in the center
var qrCodeLogo = new QRCodeLogo("ironsoftware_logo.png");
GeneratedBarcode myQRCodeWithLogo = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/", qrCodeLogo);
myQRCodeWithLogo.ResizeTo(500, 500).SetMargins(10).ChangeBarCodeColor(Color.DarkGreen);
// Logo will automatically be sized appropriately and snapped to the QR grid
myQRCodeWithLogo.SaveAsPng("myQRWithLogo.png");
Imports IronBarCode
Imports IronSoftware.Drawing
Private myQRCode As GeneratedBarcode = QRCodeWriter.CreateQrCode("https://ironsoftware.com/")
' Add annotation text above the barcode
myQRCode.AddAnnotationTextAboveBarcode("Your code is: " & myQRCode.Value).SaveAsPng("ironsoftware.png")
' You may add styling with color or logos in the center
Dim qrCodeLogo As New QRCodeLogo("ironsoftware_logo.png")
Dim myQRCodeWithLogo As GeneratedBarcode = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/", qrCodeLogo)
myQRCodeWithLogo.ResizeTo(500, 500).SetMargins(10).ChangeBarCodeColor(Color.DarkGreen)
' Logo will automatically be sized appropriately and snapped to the QR grid
myQRCodeWithLogo.SaveAsPng("myQRWithLogo.png")
Install-Package BarCode
Dans IronBarcode, les codes QR peuvent avoir des logos ajoutés, des couleurs modifiées, du texte d'annotation imprimé et des marges définies.
Explorez des styles de codes QR personnalisés et améliorez votre design !