Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode Reader > C#.NET Barcode Recognition Guide > C# Sample Code to Read & Scan Interleaved 2 of 5 Barcode Image
Download Barcode Reader for .NET Trial

How to Recognize Interleaved 2 of 5 Barcode in C# Class

C#.NET Linear Interleaved 2 of 5 Barcode Reader / Scanner / Decoder
  • Easy-to-use interleaved 2 of 5 barcode reading library for C#.NET project
  • Simple to install in C#.NET, without registration code and activation keys
  • Witten in managed C# and compatible with .NET 2.0, 3.0, 3.5 and above
  • Read interleaved 2 of 5 barcode in ASP.NET & Windows Forms project using C#
  • Recognize & decode interleaved 2 of 5 barcode in Console applications
  • Scan & output interleave 2 of 5 barcode from several image formats files using C#
Add Interleaved 2 of 5 Barcode Decoding Control to C#.NET
  1. Download & unzip the .NET barcode reader sdk trial package
  2. Find "BarcodeLib.BarcodeReader.dll"
  3. Integrate "BarcodeLib.BarcodeReader.dll" to your C#.NET project by adding reference
Decode Interleaved 2 of 5 Barcode Using C#.NET Barcode Reading DLL
After inputting following free sample C# code, you will decode & draw all interleaved 2 of 5 barcodes that are contained in the target image file "interleaved25-csharp.gif".
     string[] results = BarcodeReader.read("c:/interleaved25-csharp.gif", BarcodeReader.INTERLEAVED25);
Adjust Interleaved 2 of 5 Reading Speed Using C#.NET Barcode Decoder
How to Read Maximum Interleaved 2 of 5 Barcode Image in C#.NET Project?
Set maxOneBarcodePerPage to true and the C# barcode reading library will stop scanning once it detects the interleaved 2 of 5 barcode. Otherwise, it will scan the target image with total 5 algorithms and each will read the whole source file from 4 directions.
How to Read Interleaved 2 of 5 Barcode in a Specific Area Using C# Code
With the introduction of coordinates, this interleaved 2 of 5 barcode decoder has successfully divided the whole source file into numerous small areas. In the default value of this C#.NET interleaved 2 of 5 barcode reader, the most left top point is (0%, 0%), and the most right bottom point is (100%, 100%).
Thus, you can accurately locate the scanning area by using two specific points. For instance, you want to scan the interleaved 2 of 5 barcodes in the top 20% and bottom 20% area of the image using C# programming code, you may use following free C# sample codes.
     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:/interleaved25-barcode.gif", BarcodeReader.INTERLEAVED25, setting);
Recognize Linear & 2D Barcodes in Visual C#
Scan 1D Barcode Images:
Scan 2D Barcode Images: