Exemplo n.º 1
0
        private void InitVisionControl()
        {
            camera1        = new HzVision.Device.MainCamera();
            this.Disposed += (s, e) => camera1.Dispose();
            panel1.Controls.Add(camera1);
            camera1.Dock = DockStyle.Fill;
            camera1.ID   = 0;

            camera2        = new HzVision.Device.MainCamera();
            this.Disposed += (s, e) => camera2.Dispose();
            panel2.Controls.Add(camera2);
            camera2.Dock = DockStyle.Fill;
            camera2.ID   = 1;
        }
Exemplo n.º 2
0
 private void InitVisionControl()
 {
     camera1 = new HzVision.Device.MainCamera();
     for (int i = 0; i < 6; i++)
     {
         camera1.ContextMenuStrip.Items[i].Visible = false;
     }
     camera1.Draw        += Camera1_Draw;
     camera1.DisplayCross = true;
     this.Disposed       += (s, e) => camera1.Dispose();
     panel1.Controls.Add(camera1);
     camera1.Dock = DockStyle.Fill;
     camera1.ID   = 0;
 }