- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
.NET Barcode Reader & Scanner SDK Tutorial - Scan, read linear, 2d barcode images in .NET applicationScan & Read Linear & 2D BarCodes in .NET applications using .NET Barcode Reader Control
.NET Barcode Reader is a .NET barcode scanning control which scan and read 1D (linear) and 2D (matrix) barcodes from image files. Besides .NET Barcode Reader library, OnBarcode also provides .NET Barcode Generator for generating linear and 2D barcodes in the .NET applications. This article provides detailed developer guide for .NET Barcode Reader SDK. To use this article, you need first download the evaluation version of .NET Barcode Reader from our site. Besides this article for .NET developers, we also provide the following articles for C#, VB.NET professionals.
Index
.NET Barcode Reader Package Overview
.NET Barcode Reader Install & RequirementRequirementYou need install Microsoft .NET Framework Version 2.0 or later version. InstallAdd OnBarcode.Barcode.BarcodeScanner.dll into your .NET project reference. How to read barcodes using .NET Barcode Reader?Scan barcodes from the image documents
Read barcodes from image is a simple task with barcode reader for .net control.
String[] barcodes = BarcodeScanner.Scan("code39image.gif", BarcodeType.Code39);
Pass your barcode image file, and barcode type to BarcodeScanner.Scan method, and it will scan the image and return all barcodes found. Scan barcodes from .NET image objectTo scan barcodes from System.Drawing.Bitmap object. System.Drawing.Bitmap objImage = ... String[] barcodes = BarcodeScanner.Scan(objImage, BarcodeType.Code39); Scan barcodes from the defined area within the imageTo scan barcodes from defined area in the image document. The following C# codes will scan user defined area (left top point is [0, 0], right bottom point is [200, 300]) from the image document. List<SRegion> areas = new List<SRegion>(); SRegion area = new SRegion(0, 0, 200, 300); areas.Add(area); String[] barcodes = BarcodeScanner.ScanRegions("code39image.gif", BarcodeType.Code39, areas); Scan maximum 1 barcode from the imageIf there is maximum one barcode in the image file, to improve the reading speed, you can use the following method to scan the barcode
String[] barcodes = BarcodeScanner.ScanSingleBarcode("code39image.gif", BarcodeType.Code39);
.NET Barcode Reader Supporting Bar Code Symbology Types
|