Beispiel #1
0
        /// <summary>
        /// 注册截屏插件
        /// </summary>
        /// <param name="timeHandler"></param>
        public static void OrcRegister(OcrTimerHandler timeHandler, ScreenConfig config = null)
        {
            _screenTimerPlugins = new ScreenTimerPlugins(config);
            _screenTimerPlugins.OnTimerHandler += timeHandler;

            _screenTimerPlugins.Start();
        }
Beispiel #2
0
        /// <summary>
        /// 获取Ocr 内容
        /// </summary>
        /// <param name="config"></param>
        /// <returns></returns>
        public static decimal GetOcrMoney(ScreenConfig config, out Bitmap bitmap)
        {
            if (_screenTimerPlugins == null)
            {
                _screenTimerPlugins = new ScreenTimerPlugins(config);
            }

            _screenTimerPlugins.InitConifg(config);
            return(_screenTimerPlugins.GetOcrMoney(config, out bitmap));
        }