Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode Scanner > C# Barcode Reading Guide > UPC-E Barcode Scanning Using C#.NET Class Library
Download Barcode Reader for .NET Trial

C#.NET UPC-E Barcode Scanner & Reader Control

Free C#.NET Class Code to Read & Scan UPC-E Barcode in .NET applications
  • Compile UPC-E barcode scanning function into an easy-to-use C#.NET dll
  • Read & decode UPC-E barcode with only one-line C#.NET library code
  • Scan & recognize UPC-E barcode from major image formats in C#.NET project
  • Read & scan UPC-E barcode in ASP.NET web services & Console applications
  • Work perfectly with popular C#.NET development environment, like Visual Studio
  • Provide 6-month free premium service & 1-year software update
How to Install C#.NET UPC-E Bar Coding Scanner Library
  1. Find "BarcodeLib.BarcodeReader.dll" in downloaded package and add it to your project reference.
How to Read UPC-E Barcode Using C#.NET UPC-E Scanning Library
Free C#.NET class code is listed below:
     string[] results = BarcodeReader.read("c:/upce-csharp.gif", BarcodeReader.UPCE);
After you give this command, the UPC-E barcode scanner will decode & output all UPC-E barcodes in sample image file "upce-csharp.gif".
How to Accelerate UPC-E Barcode Reading Speed in C#.NET Applications
There are two ways to accelerate UPC-E barcode recognition rate in C#.NET applications.

1. Set maxOneBarcodePerPage to true when you are scanning a maximum barcode

Then the .NET barcode scanner will stop reading once it detects an UPC-E barcode. Otherwise, the reader will use total 5 algorithms and each will scan the whole source file from 4 directions.

2. Locate the barcode region when you are reading an UPC-E barcode from a large-size image file

Then the .NET barcode scanner will just read the fixed area, instead of scanning the total image file. The way to locate the barcode region will be achieved in the form of coordinates. So if you want to locate the top 20% & bottom 20% area, you should express this area with four points(0%,0 %), (100%,20%), (0%,80%) and (100%,100%).
  1. Note: the most left top point is (0%, 0%), and most right bottom point is (100%, 100%). The point X, Y values are expressed in percentage of the whole image.
The following are sample C# codes to scan the top 20% & bottom 20% area of the image source.
     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);

setting.setAreas(areas);

string[] results = BarcodeReader.read("c:/upce-csharp.gif", BarcodeReader.UPCE, setting);
Other Barcode Types Supported by UPC-E C#.NET Barcode Reader
Scan 1D Barcode Images:
Scan 2D Barcode Images: