public static void ScanOnlyBarcode() { ScanResult result = CSBarcodeScanner.ScanOnlyBarcode("CnetSDK.png"); Console.WriteLine(result.BarcodeType.ToString() + "--" + result.BarcodeData); Console.ReadKey(); }
public static void SpecifyBarcodeType() { ScanResult[] results = CSBarcodeScanner.ScanBarcode("CnetSDK.jpg", CSBarcodeType.QRCode); foreach (ScanResult result in results) { Console.WriteLine(result.BarcodeType.ToString() + "-" + result.BarcodeData); } Console.ReadKey(); }
public static void ScanMultipleBarcodes() { ScanResult[] results = CSBarcodeScanner.ScanBarcode("CnetSDK.jpg"); foreach (ScanResult result in results) { Console.WriteLine(result.BarcodeType.ToString() + "--" + result.BarcodeData); } Console.ReadKey(); }
public void ReadBarcodeFromImage(string file) { Scan = CSBarcodeScanner.ScanBarcode(file); foreach (ScanResult s in Scan) { Console.WriteLine(s.BarcodeType.ToString() + ": " + s.BarcodeData); } Console.ReadKey(); }