跳過到頁腳內容
使用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
  • 上面的程式碼片段示範如何使用 IronBarcode 產生包含文字"Hello World!"的二維碼並將其儲存為 PNG 圖像。

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

克雷格教你如何讀取多種條碼格式

在生成演示之後,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 或掃描文件中提取條碼資料來自動化工作流程。
物流與供應鏈– 閱讀貨運標籤,以追蹤訂單並實現倉庫自動化。
醫療保健– 掃描患者腕帶、處方和醫療記錄,以便準確記錄。

  • 付款和票務 – 驗證二維碼以進行入場、折扣和數位交易。
  • 生產製造 – 使用條碼系統追蹤工作訂單並確保品質控制。
  • 銷售點 (POS) – 透過即時掃描產品條碼加快結帳速度。
  • 安全性與驗證 – 使用基於條碼的 ID 和存取憑證驗證使用者身分。

線上演示:讀取單一和多個條碼

Shadman 再次示範了 IronBarcode 如何即時處理單一和多個條碼讀取。

Ironbarcode Code Demo 3 related to 線上演示:讀取單一和多個條碼

演示亮點:

  1. 單一條碼讀取
  2. 條碼值
  3. 格式(例如,阿茲特克)
  4. 座標(x,y 位置)
  5. 高度、寬度和編碼類型

結論

借助 IronBarcode,開發人員可以輕鬆地在各種格式和平台上產生和讀取條碼,包括桌面、Web,現在甚至可以透過 .NET MAUI 在行動裝置上讀取。 無論您是建立倉庫追蹤系統還是零售結帳應用程序,IronBarcode 都能提供完成工作所需的靈活性和效能。

準備好嘗試了嗎? 立即取得30天免費試用

常見問題解答

如何在 C# 中生成 BarCode?

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

在 C# 中從影像讀取多個 BarCode 的步驟為何?

要在 C# 中從圖像中讀取多個條碼,請使用 IronBarcode 的 BarcodeReader.Read 方法。這可讓您有效率地處理包含多種條碼格式的影像,並擷取它們的值和類型。

哪些行業可從使用 BarCode 程式庫中獲益?

製造、物流、醫療保健和零售等行業都受益於使用 IronBarcode 等條碼程式庫。它們可為庫存管理、文件處理和 POS 系統等任務提供高效的條碼產生和讀取功能。

IronBarcode 可以處理即時條碼掃描嗎?

是的,IronBarcode 可以處理即時條碼掃描。它支援即時讀取單一或多個條碼,適合需要即時處理條碼的應用程式。

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

IronBarcode 可在桌面、網頁和行動平台上使用。它支持使用 .NET MAUI 等框架進行跨平台開發,使開發人員能夠將條碼功能整合到多種應用程式中。

IronBarcode 是否提供免費試用評估?

是的,IronBarcode 提供 30 天的免費試用。這可讓開發人員在做出購買決定前,探索其功能並評估其效能。

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

IronBarcode 可從文件和影像中讀取多種條碼格式,從而支援自動化工作流程。此功能對於物流和文件管理等產業的自動化流程至關重要。

現場會議中展示的 IronBarcode 有哪些主要功能?

在現場會議中,展示的主要功能包括以最少的程式碼產生條碼、讀取多種條碼格式,以及針對各種產業應用自訂條碼輸出的能力。

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