Style Code QR
Dans IronBarcode, il est possible d'ajouter des logos aux codes QR, de modifier les couleurs, d'imprimer du texte d'annotation et de définir des marges.
using IronBarCode; using IronSoftware.Drawing; GeneratedBarcode myQRCode = QRCodeWriter.CreateQrCode("https://ironsoftware.com/"); // You may add annotation text myQRCode.SetMargins(40, 10, 10, 10); myQRCode.AddAnnotationTextAboveBarcode("Your code is: " + myQRCode.Value).SaveAsPng("ironsoftware.png"); // You may add styling with color, logo images or branding: 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/") ' You may add annotation text myQRCode.SetMargins(40, 10, 10, 10) myQRCode.AddAnnotationTextAboveBarcode("Your code is: " & myQRCode.Value).SaveAsPng("ironsoftware.png") ' You may add styling with color, logo images or branding: 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, il est possible d'ajouter des logos aux codes QR, de modifier les couleurs, d'imprimer du texte d'annotation et de définir des marges.
9 produits de l'API .NET pour vos documents de bureau