//public bool StartRecordVideo() //{ //} public void CloseCamera() { try { CMyVideo.Close(); } catch { } }
public void Camera_Resize(object sender, EventArgs e) { try { CMyVideo.SetVideoDlgRect(0, 0, this.Width, this.Height); CMyVideo.MoveVideoDlg(); } catch { } }
public bool CaptureImage(string path) { try { CMyVideo.WCaptureImage(channel, path); return(true); } catch { return(false); } }
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); } catch { } }