跳過到頁腳內容
使用IRONBARCODE

如何使用IronBarcode讀取多個條碼:現場演示回顧

在最近的直播課程中,Iron Software 團隊演示了如何使用 IronBarcode 生成和讀取多種條形碼格式。 由我們的銷售工程師 Shadman Majid 與 Craig Beaumont(銷售主管)主持,本次課程涵蓋了從簡單的條形碼生成到高級讀取用例的所有內容,展示了 IronBarcode 庫在現實應用中的快速和靈活性能。

Ironbarcode Code Demo 2 related to 如何使用IronBarcode讀取多個條碼:現場演示回顧

網絡研討會快速回顧:條形碼生成

Shadman 開始解釋如何使用 IronBarcode 僅需幾行 C# 代碼即可輕鬆生成條形碼。 該工具支持多種條形碼格式,並且可以輕鬆自定義輸出為 PNG 或 PDF。 這是從製造到物流等需要快速可靠條形碼生成的行業的理想選擇。

// Example C# code to generate a barcode using IronBarcode

using IronBarCode;

// Create a barcode instance with specific text
BarcodeWriter.CreateBarcode("Hello World!", BarcodeEncoding.QRCode)
    .SaveAsPng("HelloWorldQRCode.png");
// Example C# code to generate a barcode using IronBarcode

using IronBarCode;

// Create a barcode instance with specific text
BarcodeWriter.CreateBarcode("Hello World!", BarcodeEncoding.QRCode)
    .SaveAsPng("HelloWorldQRCode.png");
' Example C# code to generate a barcode using IronBarcode

Imports IronBarCode

' Create a barcode instance with specific text
BarcodeWriter.CreateBarcode("Hello World!", BarcodeEncoding.QRCode).SaveAsPng("HelloWorldQRCode.png")
$vbLabelText   $csharpLabel
  • 上述代碼片段展示了如何生成具有文本“Hello World!”的二維碼並使用 IronBarcode 將其保存為 PNG 圖像。

Ironbarcode Code Demo 1 related to 網絡研討會快速回顧:條形碼生成

Craig 的多種條形碼格式讀取

在生成演示之後,Craig 接手演示 IronBarcode 的條形碼讀取功能。

這些功能使 IronBarcode 成為復雜自動化工作流程,特別是當文檔可能包含多種類型的條形碼或處理批量數據時的理想選擇。

// Example C# code to read barcodes using IronBarcode

using IronBarCode;

// Read all barcodes in a given image file
var results = BarcodeReader.Read(@"exampleImageWithBarcodes.png");

// Process each barcode read
foreach (var result in results)
{
    Console.WriteLine($"Value: {result.Value}, Format: {result.BarcodeType}");
}
// Example C# code to read barcodes using IronBarcode

using IronBarCode;

// Read all barcodes in a given image file
var results = BarcodeReader.Read(@"exampleImageWithBarcodes.png");

// Process each barcode read
foreach (var result in results)
{
    Console.WriteLine($"Value: {result.Value}, Format: {result.BarcodeType}");
}
' Example C# code to read barcodes using IronBarcode

Imports IronBarCode

' Read all barcodes in a given image file
Private results = BarcodeReader.Read("exampleImageWithBarcodes.png")

' Process each barcode read
For Each result In results
	Console.WriteLine($"Value: {result.Value}, Format: {result.BarcodeType}")
Next result
$vbLabelText   $csharpLabel
  • 代碼片段顯示了如何讀取圖像文件中的所有條形碼,處理它們,並將它們的值和條形碼類型打印到控制台。

各行業的常見用例

Craig 還分享了 IronBarcode 已經產生影響的實用用例:

  • 庫存與資產管理 – 通過實時掃描跟踪庫存和定位產品。
  • 文檔處理 – 通過從 PDF 或掃描文件中提取條形碼數據自動化工作流程。
  • 物流與供應鏈 – 讀取運單標籤以實現訂單跟踪和倉庫自動化。
  • 醫療保健 – 掃描病人腕帶、處方和醫療記錄以進行準確的記錄保存。
  • 支付款和票務 – 驗證 QR 碼以進行入場、折扣和數字交易。
  • 製造 – 追蹤工作單並通過條形碼系統確保質量控制。
  • 銷售點(POS) – 通過即時掃描產品條形碼加快結賬速度。
  • 安全與身份驗證 – 使用基於條形碼的身份證件和訪問憑證進行用戶身份驗證。

現場演示:單個和多個條形碼的讀取

Shadman 回來演示了 IronBarcode 如何在實時中處理單個和多個條形碼的讀取。

Ironbarcode Code Demo 3 related to 現場演示:單個和多個條形碼的讀取

演示重點:

  1. 單個條形碼讀取
  2. 條形碼值
  3. 格式(例如,Aztec)
  4. 坐標(x, y 位置)
  5. 高度、寬度和編碼類型

結論

使用 IronBarcode,開發人員可以輕鬆生成和讀取多種格式和平台的條形碼,包括桌面、網絡,現在甚至是通過 .NET MAUI 的移動端。 無論您是在構建倉庫跟踪系統還是零售結帳應用程序,IronBarcode 提供了完成工作所需的靈活性和性能。

準備好試試看了嗎? 獲取 30 天免費試用

常見問題解答

如何在 C# 中生成條碼?

您可以使用 IronBarcode 在 C# 中生成條碼。通過使用 BarcodeWriter.CreateBarcode 方法,您可以創建各種條碼格式,並將其保存為像 PNG 或 PDF 的圖像。

從圖像中讀取多個條碼的步驟是什麼?

要從圖像中讀取多個條碼,請使用 IronBarcode 的 BarcodeReader.Read 方法。這允許您高效處理包含多種條碼格式的圖像並提取其值和類型。

哪些行業受益於使用條碼庫?

製造、物流、醫療保健和零售等行業受益於使用 IronBarcode 這樣的條碼庫。它們支持條碼生成和讀取,用於庫存管理、文件處理和 POS 系統的高效任務。

IronBarcode 能處理即時條碼掃描嗎?

是的,IronBarcode 能夠處理即時條碼掃描。它支持在即時場景中讀取單個及多個條碼,適合需要即時條碼處理的應用。

IronBarcode 可以在哪些平台上使用?

IronBarcode 可以在桌面、Web 和移動平台上使用。它支持使用像 .NET MAUI 這樣的框架進行跨平台開發,使開發人員能夠將條碼功能整合到多樣化的應用中。

是否有免費試用可以評估 IronBarcode?

是的,IronBarcode 提供 30 天的免費試用。這讓開發者能在購買決定之前探索其功能並評估其性能。

IronBarcode 如何支持自動化工作流程?

IronBarcode 支持自動化工作流程,通過使能從文件和圖像中讀取多種條碼格式。這種功能對於自動化物流和文件管理等行業的流程至關重要。

IronBarcode 在現場會議中展示的主要功能是什麼?

在現場會議中,展示的主要功能包括簡化代碼的條碼生成、閱讀多種條碼格式,以及自定義條碼輸出以滿足各種行業應用的能力。

Jordi Bardia
軟體工程師
Jordi 在 Python、C# 和 C++ 上最得心應手,當他不在 Iron Software 展現技術時,便在做遊戲編程。在分担产品测测试,产品开发和研究的责任时,Jordi 为持续的产品改进增值。他说这种多样化的经验使他受到挑战并保持参与, 而这也是他与 Iron Software 中工作一大乐趣。Jordi 在佛罗里达州迈阿密长大,曾在佛罗里达大学学习计算机科学和统计学。