Пример #1
0
        public static void ScanOnlyBarcode()
        {
            ScanResult result = CSBarcodeScanner.ScanOnlyBarcode("CnetSDK.png");

            Console.WriteLine(result.BarcodeType.ToString() + "--" + result.BarcodeData);
            Console.ReadKey();
        }
Пример #2
0
        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();
        }
Пример #3
0
        public static void ScanMultipleBarcodes()
        {
            ScanResult[] results = CSBarcodeScanner.ScanBarcode("CnetSDK.jpg");

            foreach (ScanResult result in results)
            {
                Console.WriteLine(result.BarcodeType.ToString() + "--" + result.BarcodeData);
            }

            Console.ReadKey();
        }
Пример #4
0
        public void ReadBarcodeFromImage(string file)
        {
            Scan = CSBarcodeScanner.ScanBarcode(file);

            foreach (ScanResult s in Scan)
            {
                Console.WriteLine(s.BarcodeType.ToString() + ": " + s.BarcodeData);
            }

            Console.ReadKey();
        }