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