IronBarCode.QRCodeWriter.CreateQrCodeWithLogo("https://example.com", new IronBarCode.QRCodeLogo("logo.png"), 300).ChangeBarCodeColor(IronSoftware.Drawing.Color.DeepSkyBlue).AddAnnotationTextAboveBarcode("Scan Me", new IronSoftware.Drawing.Font("Verdana",12), IronSoftware.Drawing.Color.White, 5).SaveAsPng("customQR.png");
IronBarCode.QRCodeWriter.CreateQrCodeWithLogo("https://example.com", new IronBarCode.QRCodeLogo("logo.png"), 300).ChangeBarCodeColor(IronSoftware.Drawing.Color.DeepSkyBlue).AddAnnotationTextAboveBarcode("Scan Me", new IronSoftware.Drawing.Font("Verdana",12), IronSoftware.Drawing.Color.White, 5).SaveAsPng("customQR.png");
using IronBarCode;using IronSoftware.Drawing;// Create QR code logo from file pathQRCodeLogo logo = new QRCodeLogo("ironbarcode_top.webp", 0, 0, 20f);GeneratedBarcodeQrCodeWithLogo = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/csharp/barcode/", logo, 250);QrCodeWithLogo.SaveAsPng("QrCodeWLogo2.png");
using IronBarCode;
using IronSoftware.Drawing;
// Create QR code logo from file path
QRCodeLogo logo = new QRCodeLogo("ironbarcode_top.webp", 0, 0, 20f);
GeneratedBarcode QrCodeWithLogo = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/csharp/barcode/", logo, 250);
QrCodeWithLogo.SaveAsPng("QrCodeWLogo2.png");
ImportsIronBarCodeImportsIronSoftware.Drawing' Create QR code logo from file pathDim logo As New QRCodeLogo("ironbarcode_top.webp", 0, 0, 20.0F)DimQrCodeWithLogoAsGeneratedBarcode = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/csharp/barcode/", logo, 250)QrCodeWithLogo.SaveAsPng("QrCodeWLogo2.png")
Imports IronBarCode
Imports IronSoftware.Drawing
' Create QR code logo from file path
Dim logo As New QRCodeLogo("ironbarcode_top.webp", 0, 0, 20.0F)
Dim QrCodeWithLogo As GeneratedBarcode = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/csharp/barcode/", logo, 250)
QrCodeWithLogo.SaveAsPng("QrCodeWLogo2.png")
生成されたQRコードをエクスポートするには、保存メソッドを呼び出します。 エクスポートオプションには、画像ファイル、ストリーム、HTML、PDFが含まれます。 exporting barcodes as different formats については、包括的なガイドを参照してください。ウェブアプリケーションでは、バーコードを HTML としてエクスポートして、ウェブページに直接埋め込むこともできます。
using IronBarCode;using IronSoftware.Drawing;// Create QR code logo from file pathQRCodeLogo logo = new QRCodeLogo("ironbarcode_top.webp", 0, 0, 20f);IronSoftware.Drawing.ColorColorFromRgb = new IronSoftware.Drawing.Color(51, 51, 153);GeneratedBarcodeQrCodeWithLogo = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/csharp/barcode/", logo, 250);GeneratedBarcodeQrCodeWithLogoAndColor = QrCodeWithLogo.ChangeBarCodeColor(ColorFromRgb);QrCodeWithLogoAndColor.SaveAsPng("ColorQrCodeWithLogo.png");
using IronBarCode;
using IronSoftware.Drawing;
// Create QR code logo from file path
QRCodeLogo logo = new QRCodeLogo("ironbarcode_top.webp", 0, 0, 20f);
IronSoftware.Drawing.Color ColorFromRgb = new IronSoftware.Drawing.Color(51, 51, 153);
GeneratedBarcode QrCodeWithLogo = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/csharp/barcode/", logo, 250);
GeneratedBarcode QrCodeWithLogoAndColor = QrCodeWithLogo.ChangeBarCodeColor(ColorFromRgb);
QrCodeWithLogoAndColor.SaveAsPng("ColorQrCodeWithLogo.png");
ImportsIronBarCodeImportsIronSoftware.Drawing' Create QR code logo from file pathDim logo As New QRCodeLogo("ironbarcode_top.webp", 0, 0, 20.0F)DimColorFromRgbAs New IronSoftware.Drawing.Color(51, 51, 153)DimQrCodeWithLogoAsGeneratedBarcode = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/csharp/barcode/", logo, 250)DimQrCodeWithLogoAndColorAsGeneratedBarcode = QrCodeWithLogo.ChangeBarCodeColor(ColorFromRgb)QrCodeWithLogoAndColor.SaveAsPng("ColorQrCodeWithLogo.png")
Imports IronBarCode
Imports IronSoftware.Drawing
' Create QR code logo from file path
Dim logo As New QRCodeLogo("ironbarcode_top.webp", 0, 0, 20.0F)
Dim ColorFromRgb As New IronSoftware.Drawing.Color(51, 51, 153)
Dim QrCodeWithLogo As GeneratedBarcode = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/csharp/barcode/", logo, 250)
Dim QrCodeWithLogoAndColor As GeneratedBarcode = QrCodeWithLogo.ChangeBarCodeColor(ColorFromRgb)
QrCodeWithLogoAndColor.SaveAsPng("ColorQrCodeWithLogo.png")
using IronBarCode;using IronSoftware.Drawing;// Create QR code logo from file pathQRCodeLogo logo = new QRCodeLogo("ironbarcode_top.webp", 0, 0, 20f);// Define color from RGBColor colorForBarcode = new Color(51, 51, 153);GeneratedBarcode qrCodeWithLogo = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/csharp/barcode/", logo, 250);GeneratedBarcode qrCodeWithLogoAndColor = qrCodeWithLogo.ChangeBarCodeColor(colorForBarcode);GeneratedBarcode qrCodeWithAnnotation = qrCodeWithLogoAndColor.AddAnnotationTextAboveBarcode("IronBarcodeRocks!", 2).AddBarcodeValueTextBelowBarcode(2);qrCodeWithAnnotation.SaveAsPng("QRCodeWithAnnotation.png");
using IronBarCode;
using IronSoftware.Drawing;
// Create QR code logo from file path
QRCodeLogo logo = new QRCodeLogo("ironbarcode_top.webp", 0, 0, 20f);
// Define color from RGB
Color colorForBarcode = new Color(51, 51, 153);
GeneratedBarcode qrCodeWithLogo = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/csharp/barcode/", logo, 250);
GeneratedBarcode qrCodeWithLogoAndColor = qrCodeWithLogo.ChangeBarCodeColor(colorForBarcode);
GeneratedBarcode qrCodeWithAnnotation = qrCodeWithLogoAndColor.AddAnnotationTextAboveBarcode("IronBarcodeRocks!", 2).AddBarcodeValueTextBelowBarcode(2);
qrCodeWithAnnotation.SaveAsPng("QRCodeWithAnnotation.png");
ImportsIronBarCodeImportsIronSoftware.Drawing' Create QR code logo from file pathDim logo As New QRCodeLogo("ironbarcode_top.webp", 0, 0, 20.0F)' Define color from RGBDim colorForBarcode As New Color(51, 51, 153)Dim qrCodeWithLogo AsGeneratedBarcode = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/csharp/barcode/", logo, 250)Dim qrCodeWithLogoAndColor AsGeneratedBarcode = qrCodeWithLogo.ChangeBarCodeColor(colorForBarcode)Dim qrCodeWithAnnotation AsGeneratedBarcode = qrCodeWithLogoAndColor.AddAnnotationTextAboveBarcode("IronBarcodeRocks!", 2).AddBarcodeValueTextBelowBarcode(2)qrCodeWithAnnotation.SaveAsPng("QRCodeWithAnnotation.png")
Imports IronBarCode
Imports IronSoftware.Drawing
' Create QR code logo from file path
Dim logo As New QRCodeLogo("ironbarcode_top.webp", 0, 0, 20.0F)
' Define color from RGB
Dim colorForBarcode As New Color(51, 51, 153)
Dim qrCodeWithLogo As GeneratedBarcode = QRCodeWriter.CreateQrCodeWithLogo("https://ironsoftware.com/csharp/barcode/", logo, 250)
Dim qrCodeWithLogoAndColor As GeneratedBarcode = qrCodeWithLogo.ChangeBarCodeColor(colorForBarcode)
Dim qrCodeWithAnnotation As GeneratedBarcode = qrCodeWithLogoAndColor.AddAnnotationTextAboveBarcode("IronBarcodeRocks!", 2).AddBarcodeValueTextBelowBarcode(2)
qrCodeWithAnnotation.SaveAsPng("QRCodeWithAnnotation.png")
How can I match QR codes to my brand's visual identity?
You can match QR codes to your brand's visual identity by using IronBarcode's color customization features, allowing you to define your brand's colors through RGB values or Hex codes for consistent branding.
Why might I want to use annotations on QR codes?
Annotations on QR codes provide context, improve user engagement with clear calls-to-action, build trust by displaying URLs or company names, and enhance accessibility by describing content without requiring a scan.
What library does IronBarcode use for image processing?
IronBarcode uses IronDrawing for image processing, which is a free open-source library provided by IronSoftware, offering stable image manipulation capabilities.