C#条码库
突破基础条码生成限制。为.NET 10提供基于机器学习的预处理和批量处理功能,实现高级条码读取与创建。
- 阅读 30 多种格式,包括所有主要的 1D/2D 类型
- 创建具有样式、大小和注释控制功能的 BarCode
- 具有异步和多线程功能的批处理
- 免费试用 30 天,功能齐全,无需信用卡
条形码快速入门
查看所有%s代码示例using IronBarCode;
using System.Drawing;
// Reading a barcode is easy with IronBarcode!
var resultFromFile = BarcodeReader.Read(@"file/barcode.png"); // From a file
var resultFromBitMap = BarcodeReader.Read(new Bitmap("barcode.bmp")); // From a bitmap
var resultFromImage = BarcodeReader.Read(Image.FromFile("barcode.jpg")); // From an image file
var resultFromPdf = BarcodeReader.ReadPdf(@"file/mydocument.pdf"); // From PDF use ReadPdf
// To configure and fine-tune barcode reading, utilize the BarcodeReaderOptions class
var myOptionsExample = new BarcodeReaderOptions
{
// Choose a reading speed from: Faster, Balanced, Detailed, ExtremeDetail
// There is a tradeoff in performance as more detail is set
Speed = ReadingSpeed.Balanced,
// Reader will stop scanning once a single barcode is found (if set to true)
ExpectMultipleBarcodes = true,
// By default, all barcode formats are scanned for
// Specifying a subset of barcode types to search for would improve performance
ExpectBarcodeTypes = BarcodeEncoding.AllOneDimensional,
// Utilize multiple threads to read barcodes from multiple images in parallel
Multithreaded = true,
// Maximum threads for parallelized barcode reading
// Default is 4
MaxParallelThreads = 2,
// The area of each image frame in which to scan for barcodes
// Specifying a crop area will significantly improve performance and avoid noisy parts of the image
CropArea = new Rectangle(),
// Special setting for Code39 barcodes
// If a Code39 barcode is detected, try to read with both the base and extended ASCII character sets
UseCode39ExtendedMode = true
};
// Read with the options applied
var results = BarcodeReader.Read("barcode.png", myOptionsExample);
// Create a barcode with one line of code
var myBarcode = BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.EAN8);
// After creating a barcode, we may choose to resize
myBarcode.ResizeTo(400, 100);
// Save our newly-created barcode as an image
myBarcode.SaveAsImage("EAN8.jpeg");
// Get the barcode as an image for further processing
var myBarcodeImage = myBarcode.Image;
Imports IronBarCode
Imports System.Drawing
' Reading a barcode is easy with IronBarcode!
Dim resultFromFile = BarcodeReader.Read("file/barcode.png") ' From a file
Dim resultFromBitMap = BarcodeReader.Read(New Bitmap("barcode.bmp")) ' From a bitmap
Dim resultFromImage = BarcodeReader.Read(Image.FromFile("barcode.jpg")) ' From an image file
Dim resultFromPdf = BarcodeReader.ReadPdf("file/mydocument.pdf") ' From PDF use ReadPdf
' To configure and fine-tune barcode reading, utilize the BarcodeReaderOptions class
Dim myOptionsExample As New BarcodeReaderOptions With {
' Choose a reading speed from: Faster, Balanced, Detailed, ExtremeDetail
' There is a tradeoff in performance as more detail is set
.Speed = ReadingSpeed.Balanced,
' Reader will stop scanning once a single barcode is found (if set to true)
.ExpectMultipleBarcodes = True,
' By default, all barcode formats are scanned for
' Specifying a subset of barcode types to search for would improve performance
.ExpectBarcodeTypes = BarcodeEncoding.AllOneDimensional,
' Utilize multiple threads to read barcodes from multiple images in parallel
.Multithreaded = True,
' Maximum threads for parallelized barcode reading
' Default is 4
.MaxParallelThreads = 2,
' The area of each image frame in which to scan for barcodes
' Specifying a crop area will significantly improve performance and avoid noisy parts of the image
.CropArea = New Rectangle(),
' Special setting for Code39 barcodes
' If a Code39 barcode is detected, try to read with both the base and extended ASCII character sets
.UseCode39ExtendedMode = True
}
' Read with the options applied
Dim results = BarcodeReader.Read("barcode.png", myOptionsExample)
' Create a barcode with one line of code
Dim myBarcode = BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.EAN8)
' After creating a barcode, we may choose to resize
myBarcode.ResizeTo(400, 100)
' Save our newly-created barcode as an image
myBarcode.SaveAsImage("EAN8.jpeg")
' Get the barcode as an image for further processing
Dim myBarcodeImage = myBarcode.Image跨平台支持
设计用于C#, F#, & VB.NET在.NET 10, 9, 8, 7, 6, 5, Core, Standard, 或 Framework上运行
对于移动二维码支持,请尝试我们的IronQR库
.NET 版本:
- C#, VB.NET, F# 语言
- .NET Core (10, 9, 8, 7, 6, 5和3.1+)
- .NET Standard (2.0+)
- .NET Framework (4.6.2+)
操作系统及处理器:
- Windows (x64, x86)
- Mac (x64, ARM)
- Linux (x64)
.NET 项目类型:
- Web (Blazor 和 WebForms)
- 移动设备 (MAUI)
- 桌面 (WPF 和 MAUI)
- 控制台 (应用程序及库)
应用程序环境:
- Windows (10+, Server 2016+)
- Linux (Ubuntu, Debian, CentOS, etc.)
- Mac (macOS 10+)
- Apple iOS (13+)
- Android API 24+ (v7 “Nougat”)
- Docker (Windows, Linux, Azure)
- Azure (VPS, WebApp, Function)
- AWS (EC2, Lambda)
IDE:
- Microsoft Visual Studio
- Jetbrains ReSharper & Rider
二进制认证
- Microsoft Authenticode
一款优先考虑准确性、易用性和速度的C#条码库。
IronBarcode是用于读取和创建.NET中的条码的领先C#条码库。其用户友好的API允许开发人员在几分钟内将条码功能添加到.NET项目中。
立即获取您的免费30 天试用密钥。
当您需要快速读取、写入和设计条形码时。
生成
样式
跨平台兼容性
支持平台
- .NET语言(C#、F#、 .NET)
- .NET Core和 Framework (9、8、7、6、5、3、2 和 4.6.2+)
- 平台(Windows、macOS、Linux、iOS 和 Android)
阅读
为什么选择IronBarcode?
读取和写入任何条形码。快速上线。适用于Windows、Linux、macOS及云。
广泛的格式支持
- 50多种条形码类型:Code 39/93/128、UPC、EAN、QR、数据矩阵、PDF417、Aztec等。
- 在一个库中读取和写入条形码,无需单独的工具。
- 一次调用即可导出到图像、PDF或HTML。
5 分钟内启动
- → 5分钟快速入门。
- 简单API:
BarcodeReader.Read(),BarcodeWriter.CreateBarcode(). - 智能默认值:内置自动图像校正和条形码检测。
Enterprise绩效
- .NET 10,Core,Standard,或 Framework
- 多线程和批量扫描:每分钟处理1,000多个条形码。
- 部署在任何地方:云端、本地、气隙和无服务器环境。
准确读取,任何条件
- ML驱动的预处理:自动纠正倾斜、噪声、方向和低DPI。
- 生产中在破损或打印不佳的条形码上98%+成功率。
- 裁剪区域和置信度评分确保准确且可审计的结果。
以开发者为先的支持和许可
- 永久许可:一次购买,永久使用。可选更新和续订。
- 24/5 工程师支持(Premium中24/7)。真人,聊天响应中位数<1分钟。
- 30天退款保证不合适?全额退款,无需解释。
为建筑者
- 您将真正使用的功能:
- 读取/写入条形码
- QR 码生成
- batch scanning
- 图像校正滤镜
- 裁剪区域(ROI)
- confidence scores
- barcode styling
- PDF/HTML导出
- 嵌入标识(QR)
- custom encoding
- 无处不在:Windows、Linux、macOS、Docker、Azure、AWS、云。
购买者
- 受到信任的200万+工程师 • 2M+ NuGet安装。
- 团队报告-40%开发时间节省与 DIY/OSS 包装相比。
- 再分发/SaaS可用选项。
- 采购友好:永久许可证,可选续期、可开发票、多种付款方式(包括本地)。
- 30 天退款保证。
深受全球 数百万工程师的信赖
每次开发人员询问时,Iron都说是的! IronBARCODE
IronBarcode能否在一个.NET组件中读取和写入主要条码格式(QR、Aztec、Data Matrix、PDF417、UPC、EAN、Code128)?是的!
能否一次从单个图像或PDF页面中读取多种类型的多个条码?是的!
它是否直接从PDF中读取条码,而无需外部页面到图像转换?是的!
是否能对生成的QR码进行样式设置,包括徽标、定制颜色和调整边框?是的!
是否应用图像校正滤镜(去噪、对比度、去偏斜)以提高读取率?是的!
它是否返回详细的结果数据,包括值、二进制数据、方向和边界框?是的!
能否直接将条码生成到Stream或byte[]而无需保存到磁盘?是的!
是否在Windows、Linux、macOS、Docker和Azure上的.NET Core、Standard和Framework上完全跨平台?是的!
是否支持多线程和异步以进行高性能批处理?是的!
条码能否以HTML数据URI形式输出或印加到现有PDF上?是的!
它是否支持在部分损坏时仍可扫描的容错条码?是的!
我现在能否在我的实时项目中免费测试IronBarcode?是的! 点击此处开始您的30天免费试用
准备开始了吗?
Nuget Downloads 2,422,100|版本:2026.9刚刚发布


