C# Barcode Reader library for .NET WinForms, WPF Windows Applications
Barcode Reader for .NET is the best .NET / C# barcode image recognition component in the market.
Barcode Reader C# library supports scan and recognize linear & 2d barcode images in all .NET Desktop projects:
- Windows Forms App (.NET Core and .NET Framework)
- WPF Application, Class Library, Custom Control Library, User Control Library (.NET Core and .NET Framework)
- Windows Service (.NET Framework)
- .NET Console Applications
The following tutorial will show you how to scan, read QR Code and barcodes from existing image files using C# in your .NET WinForms, WPF, console applications.
Install DLLs
For .NET (8, 7, 6, 5) and .NET Core Windows projects
- Add BarcodeLib.BarcodeReader.Common.dll from {downloaded package}/DLL/NET-Standard/ to your .net project reference
- Add Nuget package System.Drawing.Common from NuGet Package Manager to your .net Windows project
For .NET Framework Windows projects
- Add BarcodeLib.BarcodeReader.dll from {downloaded package}/DLL/NET40/ or /NET20/ to your C#.NET Windows project reference.
Note: /NET40/ is for .NET Framework 4.0 and later version; /NET20/ is for .NET Framework 2.x and 3.x.
Read barcodes using C# in Windows projects
It is really easy to use C# to read and scan barcodes from an existing image file.
The C# source code below will use a single line of code to read all Data Matrix barcodes from an existing image files. The returned list of barcode information includes only Data Matrix
barcode data, but also barcode location on the image, and other information extracted.
1
2 | BarCode[] datas = BarcodeLib.BarcodeReader.BarcodeReader.ReadBarcode(
"C://Projects//Demo-Files//datamatrix-mode-gs1-sample-data.png", BarcodeReader.BarcodeReader.DATAMATRIX);
|
Conclusion
Also provides .NET Barcode Reader, ASP.NET Barcode Reader, C# Barcode Reader, VB.NET Barcode Reader, .NET QR Code Reader, ASP.NET QR Code Reader, C# QR Code Reader, VB.NET QR Code Reader, .NET Data Matrix Reader, .NET Code 128 Reader, Java Barcode SDK, .NET Barcode SDK, ASP.NET Barcode SDK, Visual C# Barcoding, Visual Basic .NET Barcoding. |