Use C# Class Code to Optimize EAN-8 Barcode Reading Function
This .NET barcode reading library equips you with the flexibility to customize the scanning speed in different situations.
Case 1: There is only one large-size EAN-8 barcode in the target file.
If you read this maximum EAN-8 barcode in the common way, then it is really time-consuming. So our C#.NET EAN-8 barcode reader offers you a unique way to read large-size EAN-8 barcode in the shortest time.
You just set maxOneBarcodePerPage to true. Then the C#.NET barcode scanning component will stop reading the barcode as soon as it detects this EAN-8 barcode. In this way, you do not need to wait for the barcode reader to scan the target image file using total 5 algorithms (each algorithm will read the whole source file from 4 directions).
Case 2: The EAN-8 barcode images are concentrated in a certain area of the target image file.
If you are going to read a small-size EAN-8 barcode which is located in a large-size image file, then you cannot afford the time to let barcode reader scan the whole target image for decoding that EAN-8 barcode.
Thus, our C#.NET EAN-8 barcode decoder can largely shorten the scanning time by reducing the scanning area. For example, if the EAN-8 barcode is located in the area of top 20% and bottom 20% of the image file, then you just need to direct the barcode reader to recognize EAN-8 barcode in that area. And following C# sample codes can help you do that.
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);