コード例 #1
0
        static void Main(string[] args)
        {
            SampleClient.TestUsage();
            var value = "";
            var fig   = new Figlet();

            fig.PrepareAlphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.");
            while (value.ToLower() != "quit")
            {
                System.Console.Write("Enter text to be converted (Quit for exit) :");
                value = System.Console.ReadLine();
                var asciiart = fig.ToAsciiArt(value);
                System.Console.WriteLine(asciiart);

                var recognize = fig.RecognizeAsciiArt(asciiart);
                System.Console.WriteLine("OCR-ArtASCII: {0}", recognize);
            }
        }