For example, you may firstly create a .NET demo project for testing Data Matrix barcode scanning functions. Here, let's see a .NET Windows Forms application with either Visual C# or Visual Basic programming language. Then, you can click add reference button on Visual Studio menu and browse to find pqScan.BarcodeScanner.dll in the pop up window. Integration is done!
.NET Barcode Scanner: Data Matrix Recognition
In pqScan .NET Barcode Scanner Software page, you will know that our barcode scanning solution supports most of the commonly used one-dimensional and two-dimensional bar codes symbol, such as QR Code, PDF417, Aztec Code, Codabar, Code 128, EAN/UPC and so on. On this page, we focus on 2D barcode Data Matrix recognition for .NET, C#, VB.NET and ASP.NET programs. You will know how to perform Data Matrix bar code scanning and decoding functionality on image files and PDF document.
No matter be a C#.NET or VB.NET programmer, you can seamlessly use and integrate pqScan.BarcodeScanner.dll to your Visual Studio .NET applications. Two simple conditions should be met (installed on your computer), including Windows System and .NET Framework 2.0 or a later version. Now let's see how to do that!
In all, with our .NET barcode reading library, you can read Data Matrix barcode(s) from bmp, jpg, jpeg, png, tif, tiff & gif images and return encoded barcode data & type as data text array. Your image files can be the forms of Bitmap, Stream and pictures from the pc, camera, or mobile phone. Please note that, our barcode scanner for .NET can read Data Matrix at fast speed and high accuracy in condition that the barcode has Quiet Zone on four sides. Here're the complete APIs.
public static BarcodeResult[] Scan(Bitmap bitmap); public static BarcodeResult[] Scan(Stream stream); public static BarcodeResult[] Scan(string filename); public static BarcodeResult[] Scan(Bitmap bitmap, BarCodeType barType); public static BarcodeResult[] Scan(Stream stream, BarCodeType barType); public static BarcodeResult[] Scan(string filename, BarCodeType barType); public static BarcodeResult ScanSingle(Bitmap bitmap); public static BarcodeResult ScanSingle(Stream stream); public static BarcodeResult ScanSingle(string filename);
In general, the first three APIs can help you to detect and recognize Data Matrix bar codes efficiently. And we also design another three ones to improve your barcode scanning speed. They are supposed to be used if your images contain several barcode symbologies. Then, you can specify Data Matrix as the target barcode type and direct our .NET barcode scanner software is intelligent enough to decode this type only. Thus, save a lot of time (having no need to decode all of the barcodes on image source). Moreover, to improve barcode recognition accuracy, we provide the APIs for one barcode recognition. It is suitable when there's only one barcode on your image.
Currently, we provide VB.NET and C# Data Matrix decoding online demos online which illustrates Data Matrix barcode reading from image files. For decoding Data Matrix from PDF document, pqScan PDF to Image Converter for .NET should also be used. Here's an online tutorial for PDF barcode recognition.
You can see more .NET barcode recognition tutorials here: How to Scan Barcode in C# and How to Scan Barcode in VB.NET.