Program.cs 1.1 KB
using CodeLibrary;
using Common;
using log4net.Config;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CodeTest
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
         //   CodeCreater.CreateCode(10);
         //   return;


            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            HDCodeLearnHelper.LoadConfig(ConfigAppSettings.GetValue(Setting_Init.CameraName), ConfigAppSettings.GetValue(Setting_Init.CodeType));
            Application.Run(new FrmCodeDecode());

            //Application.Run(new FrmTest());
            //string filename = @"C:/Users/WORK/Desktop/西安二维码/IMG_20190730_165612.jpg";
            //Bitmap img = (Bitmap)Image.FromFile(filename).Clone();
            //string text=            CodeCreater.DecodeQRCode(img);
            //Console.WriteLine(text);
        }
      
    }
}