Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode Scanner > C#.NET Barcode Reading Guide > How to Scan & Decode EAN-13 Barcode Images in C#.NET Prgram
Download Barcode Reader for .NET Trial

C#.NET EAN13 Barcode Scanner & Reader DLL

How to Read & Decode EAN 13 Barcode Using Free C#.NET Codes
  • 100% built in managed C#, compatible with .NET 2.0, 3.0, 3.5 and greater
  • Scan & read EAN-13 barcode images with a high recognition rate
  • Recognize EAN 13 barcodes in C# ASP.NET web servers & Console applications
  • Decode EAN 13 barcode from jpeg, jpg, gif, png, tiff and bmp image files
  • Read multiple EAN 13 barcodes from one image file using C#.NET dll library
  • Use axis-positioning function to save scanning time & computer usage
How to Integrate C#.NET EAN 13 Bar Coding Reader Component
  1. Download & unzip the free trial package and find BarcodeLib.BarcodeReader.dll.
  2. Click "Add Reference..." in the Solution Explorer and add this .net reader dll to your project reference.
How to Read EAN 13 Barcode Images Using C# Class Programming
The free trial package from BarcodeLib.com contains sample C# code sources to read & decode EAN-13 barcode image.
     string[] results = BarcodeReader.read("c:/ean13-csharp.gif", BarcodeReader.EAN13);
You could scan & read all EAN13 barcodes from the image file "ean13-csharp.gif" with below C# code.
How to Use Special Features of EAN-13 Barcode Reading SDK in C# Lib
In the practical applications, users will sometimes meet the following situations: read a large size barcode or read barcode which is located in a certain area. Therefore, in order to speed up the scanning rate, this C#.NET EAN-13 barcode reader offers users some special decoding ways.

1. Read & scan a maximum EAN 13 barcode from image source

If you need to scan a maximum EAN 13 barcode from an image source (per image, page in tiff or pdf document), you can set maxOneBarcodePerPage to true. Then, our EAN13 barcode reader will stop scanning once it detects one barcode.
If you set maxOneBarcodePerPage to false, our reader will use total 5 algorithms and each will read the whole source file from 4 directions.

2. Read EAN 13 barcode by scanning partial area of the image file

If you need to decode EAN13 barcode which is located in specific area, then you could write the below free C# code to customize your barcode reading control. Those C# codes will ask the reader to scan barcode in that area, which in turn, reduces your decoding time.
  1. Please note the point X, Y values are expressed in percentage of the whole image, so image most left top point is (0%, 0%), and most right bottom point is (100%, 100%).
     OptimizeSetting setting = new OptimizeSetting();


ScanArea top20 = new ScanArea(new PointF(0.0F, 0.0F), new PointF(100.0F, 20.0F));

ScanArea bottom20 = new ScanArea(new PointF(0.0F, 80.0F), new PointF(100.0F, 100.0F));

List<ScanArea> areas = new List<ScanArea>();


string[] results = BarcodeReader.read("c:/ean13-csharp.gif", BarcodeReader.EAN13, setting);
The above sample code will set the barcode reader to scan the top 20% and bottom 20% of the image only.
C#.NET EAN13 Barcode Reader Control Supported Barcode Types
The C#.NET EAN13 Barcode Reader Control from BarcodeLib.com also supports those popular linear & 2D barcodes.
Scan 1D Barcode Images:
Scan 2D Barcode Images: