樣式二維碼
在 IronBarcode 中,可以為二維碼添加徽標、更改顏色、列印註釋文字和設定邊距。
準備好開始了嗎?
Nuget 下載 2,035,202 | 版本: 2025.12 剛剛發布
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");Install-Package BarCode
在 IronBarcode 中,可以為二維碼添加徽標、更改顏色、列印註釋文字和設定邊距。