Aspose.BarCode.Examples.CSharp.ManageAndOptimizeBarCodeRecognition.RecognizeSpecificBarcodeSymbology.Run C# (CSharp) 메소드

Run() 공개 정적인 메소드

public static Run ( ) : void
리턴 void
        public static void Run()
        {
            try
            {
                // The path to the documents directory.
                string dataDir = RunExamples.GetDataDir_ManageAndOptimizeBarcodeRecognition();

                // Create instance of BarCodeBuilder class 
                BarCodeReader reader = new BarCodeReader(dataDir + "SymbologyTypebarcode.png", DecodeType.Code128);
                while (reader.Read())
                {
                    // Display code text and Symbology Type
                    Console.WriteLine("CodeText: " + reader.GetCodeText());
                    Console.Write("Symbology Type: " + reader.GetCodeType());
                }
                reader.Close();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message + "\nThis example will only work if you apply a valid Aspose BarCode License. You can purchase full license or get 30 day temporary license from http://wwww.aspose.com/purchase/default.aspx.");
            }
        }
    }
RecognizeSpecificBarcodeSymbology