ASP.NET Data Matrix Reader Library - Using VB.NET Class Library
Please use the VB.NET sample code below to scan and output all Data Matrix barcodes from your ASP.NET project source file. Here, let's take "datamatrix-aspnet.gif" as an example.
Dim datas() AsString = BarcodeReader.read("c:/datamatrix-aspnet.gif", BarcodeReader.DATAMATRIX)
Still, all Data Matrix barcodes data in sample image "datamatrix-aspnet.gif" will be read and decoded.
ASP.NET Data Matrix Scanner SDK - Achieve High Speed Reading
To fulfill different requirements for ASP.NET Data Matrix barcode reading, we developed some special functions for high-speed barcode reading from a large source image (like 4mb per image).
To read maximum one Data Matrix barcode: If there is maximum one Data Matrix barcode per image, per page in tiff or pdf document, please: a. Set "maxOneBarcodePerPage" to true, then the process of Data Matrix recognition will be stopped when our ASP.NET Data Matrix Barcode Scanner Library detects one Data Matrix barcode.
b. Set "maxOneBarcodePerPage" to true (default value), and our ASP.NET Data Matrix Barcode Scanner Library will use total 5 algorithms and each will read the whole image from 4 directions.
To scan a special part of source image instead of the whole file: If the QR Code is always at a specific area in the source image file, please: a. Set our ASP.NET Data Matrix Reader Library to read that area only. This can save lots of reading time, CPU and memory usage.
b. To do so, you need to demonstrate the left top point and right bottom point of the area (the point X, Y values are expressed in percentage of the whole image, so image most left top point is (0%, 0%), and most right bottom point is (100%, 100%)). And we provide the following free C# & VB.NET codes to achieve this.
Free C# Sample Code for ASP.NET Data Matrix Reading:
OptimizeSetting setting = new OptimizeSetting();
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);