ZXing.Net 0.16.11
About
A library which supports decoding and generating of barcodes (like QR Code, PDF 417, EAN, UPC, Aztec, Data Matrix, Codabar) within images.
How to Use
The source code repository includes small examples for Windows Forms, Silverlight, Windows Phone and other project types.
The following example works with the classic .Net framework until version 4.8.1:
// create a barcode reader instance
IBarcodeReader reader = new BarcodeReader();
// load a bitmap
var barcodeBitmap = (Bitmap)Image.FromFile("C:\\sample-barcode-image.png");
// detect and decode the barcode inside the bitmap
var result = reader.Decode(barcodeBitmap);
// do something with the result
if (result != null)
{
txtDecoderType.Text = result.BarcodeFormat.ToString();
txtDecoderContent.Text = result.Text;
}
If you want to try the sample code above within a project which target .Net Standard or .Net 5.0 or higher then you have to add one of the additional nuget package for a specific image library: https://www.nuget.org/packages?q=ZXing.Bindings The main package of ZXing.Net for such platforms only contains the core classes which are not dependent on a specific assembly for image formats.
// example shows a simple decoding snippet as a .Net 8.0 console appliation which uses the ZXing.Windows.Compatibility package
using System.Drawing;
using ZXing.Windows.Compatibility;
// create a barcode reader instance
var reader = new BarcodeReader();
// load a bitmap
var barcodeBitmap = (Bitmap)Image.FromFile("C:\\sample-barcode-image.png");
// detect and decode the barcode inside the bitmap
var result = reader.Decode(barcodeBitmap);
// do something with the result
if (result != null)
{
Console.WriteLine(result.BarcodeFormat.ToString());
Console.WriteLine(result.Text);
}
else
{
Console.WriteLine("No barcode found");
}
Related Packages
There are several packages which can be used with different image libraries in combination with ZXing.Net. https://www.nuget.org/packages?q=ZXing.Bindings
Feedback
Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on ZXing.Net.
| Packages | Downloads |
|---|---|
|
ZXing.Net.Bindings.Windows.Compatibility
ZXing.Net Bindings for Windows Compatibility Pack - use System.Drawing.Common with ZXing.Net for barcode reading
|
7 |
|
ZXing.Net.Bindings.Windows.Compatibility
ZXing.Net Bindings for Windows Compatibility Pack - use System.Drawing.Common with ZXing.Net for barcode reading
|
5 |
|
ZXing.Net.Bindings.SkiaSharp
ZXing.Net Bindings for SkiaSharp - use SkiaSharp with ZXing.Net for barcode reading
|
4 |
|
ZXing.Net.Bindings.Windows.Compatibility
ZXing.Net Bindings for Windows Compatibility Pack - use System.Drawing.Common with ZXing.Net for barcode reading
|
3 |
|
ZXing.Net.Bindings.SkiaSharp
ZXing.Net Bindings for SkiaSharp - use SkiaSharp with ZXing.Net for barcode reading
|
2 |
|
ZXing.Net.Bindings.ZKWeb.System.Drawing
ZXing.Net Bindings for ZKWeb.System.Drawing - use ZKWeb.System.Drawing with ZXing.Net for barcode reading
|
2 |
|
Ding.BarCode.ZXing
Ding.BarCode.ZXing是基于.net core平台开发的应用框架中的ZXing.Net条形码操作类库。
|
2 |
.NET Framework 2.0
- No dependencies.
.NET Framework 3.5
- No dependencies.
.NET Framework 4.0
- No dependencies.
.NET Framework 4.5
- No dependencies.
.NET Framework 4.6.1
- No dependencies.
.NET Framework 4.7
- No dependencies.
.NET Framework 4.8
- No dependencies.
.NET 5.0
- No dependencies.
.NET 6.0
- No dependencies.
.NET 7.0
- No dependencies.
.NET 8.0
- No dependencies.
.NET 9.0
- No dependencies.
Silverlight 4.0
- No dependencies.
Silverlight 5.0
- No dependencies.
Silverlight 3.0
- No dependencies.
Silverlight 4.0
- No dependencies.
WindowsPhone 8.0
- No dependencies.
Windows 8.0
- No dependencies.
Windows 8.0
- No dependencies.
native 0.0
- No dependencies.
.NET Framework 2.0
- No dependencies.
.NET Framework 3.5
- No dependencies.
.NETPortable 0.0
- No dependencies.
UAP 1.0
- No dependencies.
.NET Standard 1.0
- NETStandard.Library (>= 1.6.1)
.NET Standard 1.1
- NETStandard.Library (>= 1.6.1)
.NET Standard 1.3
- NETStandard.Library (>= 1.6.1)
.NET Standard 2.0
- NETStandard.Library (>= 2.0.0)
.NET Standard 2.1
- NETStandard.Library (>= 2.0.0)
.NET Core 3.0
- No dependencies.
.NET Core 3.1
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 0.16.11 | 5 | 2025/10/31 |
| 0.16.10 | 7 | 2025/6/5 |
| 0.16.9 | 4 | 2025/6/21 |
| 0.16.8 | 3 | 2025/6/30 |
| 0.16.7 | 3 | 2025/6/30 |
| 0.16.6 | 4 | 2025/7/1 |
| 0.16.5 | 3 | 2025/6/30 |
| 0.16.4 | 4 | 2025/6/30 |
| 0.16.2 | 3 | 2025/6/30 |
| 0.16.1 | 3 | 2025/7/1 |
| 0.16.0 | 3 | 2025/7/1 |
| 0.15.0 | 4 | 2025/7/1 |
| 0.14.0.1 | 3 | 2025/6/8 |
| 0.14.0 | 2 | 2025/7/1 |
| 0.12.0 | 3 | 2025/7/1 |
| 0.11.0.1 | 3 | 2025/6/8 |
| 0.11.0 | 3 | 2025/7/1 |
| 0.10.0 | 2 | 2025/7/1 |
| 0.9.0 | 2 | 2025/7/1 |
| 0.8.0.1 | 3 | 2025/7/1 |
| 0.7.0 | 2 | 2025/7/1 |
| 0.6.0 | 2 | 2025/7/1 |
| 0.5.0 | 1 | 2025/7/1 |
| 0.4.0 | 2 | 2025/7/1 |
| 0.3.0 | 2 | 2025/7/1 |
| 0.2.0 | 2 | 2025/7/1 |
| 0.1.0 | 2 | 2025/7/1 |