![]() |
VOOZH | about |
dotnet add package ZXing.Net --version 0.16.11
NuGet\Install-Package ZXing.Net -Version 0.16.11
<PackageReference Include="ZXing.Net" Version="0.16.11" />
<PackageVersion Include="ZXing.Net" Version="0.16.11" />Directory.Packages.props
<PackageReference Include="ZXing.Net" />Project file
paket add ZXing.Net --version 0.16.11
#r "nuget: ZXing.Net, 0.16.11"
#:package ZXing.Net@0.16.11
#addin nuget:?package=ZXing.Net&version=0.16.11Install as a Cake Addin
#tool nuget:?package=ZXing.Net&version=0.16.11Install as a Cake Tool
A library which supports decoding and generating of barcodes (like QR Code, PDF 417, EAN, UPC, Aztec, Data Matrix, Codabar) within images.
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");
}
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
Bug reports and contributions are welcome at the GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp1.0 netcoreapp1.0 was computed. netcoreapp1.1 netcoreapp1.1 was computed. netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 is compatible. netcoreapp3.1 netcoreapp3.1 is compatible. |
| .NET Standard | netstandard1.0 netstandard1.0 is compatible. netstandard1.1 netstandard1.1 is compatible. netstandard1.2 netstandard1.2 was computed. netstandard1.3 netstandard1.3 is compatible. netstandard1.4 netstandard1.4 was computed. netstandard1.5 netstandard1.5 was computed. netstandard1.6 netstandard1.6 was computed. netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net20 net20 is compatible. net20-cf net20-cf is compatible. net35 net35 is compatible. net35-cf net35-cf is compatible. net40 net40 is compatible. net403 net403 was computed. net45 net45 is compatible. net451 net451 was computed. net452 net452 was computed. net46 net46 was computed. net461 net461 is compatible. net462 net462 was computed. net463 net463 was computed. net47 net47 is compatible. net471 net471 was computed. net472 net472 was computed. net48 net48 is compatible. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| native | native native is compatible. |
| Silverlight | sl3-wp sl3-wp is compatible. sl4 sl4 is compatible. sl4-wp71 sl4-wp71 is compatible. sl5 sl5 is compatible. |
| Tizen | tizen30 tizen30 was computed. tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Universal Windows Platform | uap uap was computed. uap10 uap10 is compatible. uap10.0 uap10.0 was computed. |
| Windows Phone | wp8 wp8 is compatible. wp81 wp81 was computed. wpa81 wpa81 was computed. |
| Windows Store | netcore netcore was computed. netcore45 netcore45 was computed. netcore451 netcore451 was computed. win8 win8 is compatible. win8-managed win8-managed is compatible. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on ZXing.Net:
| Package | Downloads |
|---|---|
|
ZXing.Net.Mobile
ZXing.Net.Mobile is a C#/.NET library based on the open source Barcode Library: ZXing (Zebra Crossing), using the ZXing.Net Port. It works with Xamarin.iOS, Xamarin.Android, Tizen and Windows Universal (UWP). The goal of ZXing.Net.Mobile is to make scanning barcodes as effortless and painless as possible in your own applications. See https://github.com/Redth/ZXing.Net.Mobile/releases for release notes. |
|
|
ZXing.Net.Mobile.Forms
ZXing.Net.Mobile is a C#/.NET library based on the open source Barcode Library: ZXing (Zebra Crossing), using the ZXing.Net Port. It works with Xamarin.iOS, Xamarin.Android, Tizen and Windows Universal (UWP). The goal of ZXing.Net.Mobile is to make scanning barcodes as effortless and painless as possible in your own applications. See https://github.com/Redth/ZXing.Net.Mobile/releases for release notes. |
|
|
ZXing.Net.Bindings.SkiaSharp
ZXing.Net Bindings for SkiaSharp - use SkiaSharp with ZXing.Net for barcode reading |
|
|
ZXing.Net.Bindings.Windows.Compatibility
ZXing.Net Bindings for Windows Compatibility Pack - use System.Drawing.Common with ZXing.Net for barcode reading |
|
|
ZXing.Net.Bindings.ImageSharp
ZXing.Net Bindings for ImageSharp - use ImageSharp with ZXing.Net for barcode reading |
Showing the top 20 popular GitHub repositories that depend on ZXing.Net:
| Repository | Stars |
|---|---|
|
shadowsocks/shadowsocks-windows
A C# port of shadowsocks
|
|
|
ShareX/ShareX
ShareX is a free and open-source application that enables users to capture or record any area of their screen with a single keystroke. It also supports uploading images, text, and various file types to a wide range of destinations.
|
|
|
QuestPDF/QuestPDF
QuestPDF is a modern library for PDF document generation. Its fluent C# API lets you design complex layouts with clean, readable code. Create documents using a flexible, component-based approach.
|
|
|
JeffreySu/WeiXinMPSDK
微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 10.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
|
|
|
Richasy/Bili.Uwp
适用于新系统UI的哔哩
|
|
|
TheJoeFin/Text-Grab
Use OCR in Windows quickly and easily with Text Grab. With optional background process and notifications.
|
|
|
cyanfish/naps2
Scan documents to PDF and more, as simply as possible.
|
|
|
openclaw/openclaw-windows-node
Windows companion suite for OpenClaw - System Tray app, Shared library, Node, and PowerToys Command Palette extension
|
|
|
CHKZL/DDTV
可对阿B进行直播多窗口观看、开播提醒、自动录制、合并、转码的跨平台工具
|
|
|
xiaoyaocz/biliuwp-lite
哔哩哔哩UWP Lite
|
|
|
wangfreexx/wangfreexx-tianruoocr-cl-paddle
天若ocr开源版本的本地版,采用Chinese-lite和paddleocr识别框架
|
|
|
Redth/ZXing.Net.Mobile
Barcode Scanner for Xamarin.iOS, Xamarin.Android, UWP and Tizen
|
|
|
simpleidserver/SimpleIdServer
OpenID, OAuth 2.0, SCIM2.0, UMA2.0, FAPI, CIBA & OPENBANKING Framework for ASP.NET Core
|
|
|
ZeusAutomacao/DFe.NET
Biblioteca para Geração de NFe(2.0, 3.10 e 4.0) e NFCe(3.10 e 4.0) e consumo dos serviços necessários à sua manutenção, conforme descritos em http://www.nfe.fazenda.gov.br/portal/principal.aspx
|
|
|
xiaoyaocz/AllLive
获取多个直播平台的信息和弹幕
|
|
|
OpportunityLiu/E-Viewer
An UWP Client for https://e-hentai.org.
|
|
|
dukus/digiCamControl
DSLR camera remote control open source software
|
|
|
CodeBeamOrg/CodeBeam.MudBlazor.Extensions
Useful third party extension components for MudBlazor, from the contributors.
|
|
|
1357310795/QrCodeScanner
通过截图或摄像头扫描二维码(支持ZXing、Zbar、OpenCV-WechatQrCode库) | Scan codes from screenshots and cameras
|
|
|
Redth/ZXing.Net.Maui
Barcode Scanning for MAUI?
|
| Version | Downloads | Last Updated |
|---|---|---|
| 0.16.11 | 2,483,919 | 10/25/2025 |
| 0.16.10 | 4,241,170 | 1/26/2025 |
| 0.16.9 | 13,985,189 | 2/23/2023 |
| 0.16.8 | 5,548,682 | 2/6/2022 |
| 0.16.7 | 831,996 | 12/26/2021 |
| 0.16.6 | 6,290,647 | 10/8/2020 |
| 0.16.5 | 3,061,172 | 9/29/2019 |
| 0.16.4 | 3,931,829 | 4/14/2018 |
| 0.16.2 | 1,125,144 | 9/11/2017 |
| 0.16.1 | 39,892 | 9/6/2017 |
| 0.16.0 | 111,180 | 8/11/2017 |
| 0.15.0 | 396,701 | 3/1/2017 |
| 0.14.0.1 | 2,114,110 | 4/29/2014 |
| 0.14.0 | 139,654 | 4/7/2014 |
| 0.12.0 | 186,448 | 9/24/2013 |
| 0.11.0.1 | 36,332 | 4/8/2013 |
| 0.11.0 | 11,469 | 3/30/2013 |
| 0.10.0 | 14,811 | 11/25/2012 |
| 0.9.0 | 9,841 | 9/27/2012 |
* changes of the java version are reflected until 2025/10/25
* small bug fixes and improvements