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".
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();
setting.setMaxOneBarcodePerPage(true);
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>(); areas.Add(top20); areas.Add(bottom20);