For Using BC.NetBarcodeReader.Upce in .NET
Scan, read, and recognize linear/1d barcode UPC-E from raster images Jpg, Jpeg, Png, Tiff, Bmp, and Gif.
It's easy to use BC.NetBarcodeReader.Upce reader library to scan and read UPC-E barcodes from images in your .NET applications. Here we will show you in simple steps. Please firstly download and get the free trial library (BC.NetBarcodeReaderTrial.Upce.dll). And the only thing for he integration of our library is to add your project reference to it.
We take the Console Application as an example of how to use BC.NetBarcodeReader.Upce reader library to scan and read UPC-E barcodes from images. For ease of use, here are simple code examples for C# and VB.NET developers. To recognize all 1d and 2d barcode symbologies, you should use the library, BC.NetBarcodeReader.All.
1. Scan and read UPC-E barcodes from an image using BC.NetBarcodeReader.Upce reader library.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using BC.NetBarcodeReaderTrial.Upce; namespace BC.NetBarcodeReaderDemo { class Program { static void Main(string[] args) { ReadOneBarcodeTypefromImage(); } public static void ReadOneBarcodeTypefromImage() { string[] data = NetBarcodeReader.Recognize("Upce.bmp", NetBarcodeReader.Upce); foreach (string result in data) { Console.WriteLine(result); } Console.ReadKey(); } } }
Imports System Imports System.Collections.Generic Imports System.Linq Imports System.Text Imports BC.NetBarcodeReaderTrial.Upce Module BCNetBarcodeReaderDemo Sub Main() ReadOneBarcodeTypefromImage() End Sub Public Sub ReadOneBarcodeTypefromImage() Dim data As String() = NetBarcodeReader.Recognize("Upce.bmp", NetBarcodeReader.Upce) For Each result As String In data Console.WriteLine(result) Next Console.ReadKey() End Sub End Module