|
Get the 1D and 2D Barcode type that matches the given index of the Barcode. Support UPC-A, UPC-E, EAN-8, EAN-13, Code 39, Code 93, Code 128, ITF, Codabar, MSI, RSS-14 (all variants), QR Code, Data Matrix, Aztec and PDF-417.
string GetBarcodeType( int nIndex )
|
Parameter nIndex the index of Barcode. The first index is zero.
Return Value Return the string of Barcode type.
Example
|
C# Syntax using System.Drawing; using System.Drawing.Imaging; using BarcodeWrapper;
BarcodeReader reader= new BarcodeReader(); reader.ScanWithoutRotation = true; reader.TryHard = true; reader.ScanMultiple = true; Bitmap bitmap = new Bitmap(strinputpath1); int count = reader.ReadBarcodeImage(bitmap, x, y, width, height); string text = "" + count + " codes found<br><br>";
for (int i = 0; i < count; i++) { text += reader.GetBarcodeType(i) + " value:" + reader.GetBarcodeValue(i) + "<br>"; }
|
|
|