Exemplo n.º 1
0
 public void Camera_Resize(object sender, EventArgs e)
 {
     try
     {
         CMyVideo.SetVideoDlgRect(0, 0, this.Width, this.Height);
         CMyVideo.MoveVideoDlg();
     }
     catch
     {
     }
 }
Exemplo n.º 2
0
 private void Camera_Load(object sender, EventArgs e)
 {
     try
     {
         int a = CMyVideo.CreateVideoDlg(this.Handle, 0, 0, 800, 600);//this.Width, this.Height);
         CMyVideo.SetVideoDlgRect(0, 0, this.Width, this.Height);
         CMyVideo.MoveVideoDlg();
         CMyVideo.SelectChannel(channel);
         CMyVideo.WRegisterMessageNotifyHandle(this.Handle, USER);
         databuf = new byte[0x30000];
     }
     catch
     {
     }
 }