示例#1
0
        void Application_Idle(object sender, EventArgs e)
        {
            Bitmap bmp = _surf.UpdateFrame();

            this.pictureBoxIpl1.Image = bmp;

            _tickCount++;


            if (1000 < (Environment.TickCount - _tick))
            {
                _tick = Environment.TickCount;
                MDIParent1.Log(string.Format("TICK COUNT({0}) E({1}) D({2}) C({3})", _tickCount, _surf.GetExtremaTime(), _surf.GetDescriptorTime(), _surf.GetCompareTime()));
                MDIParent1.Log(string.Format("CX({0}) CY({1})", _surf.GetCX(), _surf.GetCY()));
                _tickCount = 0;
            }



            //cap.GrabFrame();
        }
示例#2
0
 public MDIParent1()
 {
     InitializeComponent();
     _I = this;
 }
示例#3
0
 public MDIParent1()
 {
     InitializeComponent();
     _I = this;
 }