Then all UPC-E barcodes in the gif image file (upce-aspnet) will be decoded & output.
Scan UPC-E Barcode in ASP.NET Projects Using VB.NET Code
The sample Visual Basic .NET code is listed below:
Dim datas() AsString = BarcodeReader.read("c:/upce-aspnet.gif", BarcodeReader.UPCE)
With above VB.NET code, user could read & draw all UPC-E barcodes from a gif image file (upce-aspnet) in ASP.NET web project.
Enhance UPC-E Barcode Scanning Efficiency Using VB.NET & C#
Besides the general UPC-E barcode recognition way, user could also use some other scanning methods to read & decode UPC-E barcodes in the ASP.NET web applications.
Method 1: Set maxOneBarcodePerPage to true UPC-E Barcode Scanning SDK from BarcodeLib.com has a special function which could help the reader scan a maximum UPC-E barcode in a shorter time. And this function will be activated if user sets maxOneBarcodePerPage to true.
Once the function is activated, the reader will stop scanning instantly after it detects an UPC-E barcode. And the default value of maxOneBarcodePerPage in our barcode reader dll is false, which means the reader will use total 5 algorithms and scan the whole image from 4 directions.
Method 2: Use axis-positioning function Our UPC-E barcode reader separates the whole image file into numerous small regions and those regions can be accurately located with usage of coordinates. The default coordinate of most left top point is (0%, 0%), and the coordinate of most right bottom point is (100%, 100%). The point X, Y values are expressed in percentage of the whole image.
Therefore, if user just wants to scan the top 20% and bottom 20% area, he/she could use following C# or VB.NET 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);