DisplayPropertyPage() public method

Display property window for the video capture device providing its configuration capabilities.

If you pass parent window's handle to this method, then the displayed property page will become modal window and none of the controls from the parent window will be accessible. In order to make it modeless it is required to pass IntPtr.Zero as parent window's handle.

The video source does not support configuration property page.
public DisplayPropertyPage ( IntPtr parentWindow ) : void
parentWindow System.IntPtr Handle of parent window.
return void
Ejemplo n.º 1
0
 private void bttnCamProp_Click(object sender, EventArgs e)
 {
     VideoCaptureDevice localSource = new VideoCaptureDevice(CameraRig.rig[CameraRig.activeCam].cameraName);
     localSource.DisplayPropertyPage(IntPtr.Zero); // non-modal
 }
Ejemplo n.º 2
0
        private void bttnCamProp_Click(object sender, EventArgs e)
        {
            //hjfgjgf

            if (CameraRig.rig[CameraRig.drawCam].cam.isIPCamera)
            {

                try
                {

                    IPAddress parsedIPAddress;
                    Uri parsedUri;
                    string name = CameraRig.rig[CameraRig.drawCam].cam.name;

                    //check that the url resolves
                    if (Uri.TryCreate(name, UriKind.Absolute, out parsedUri) && IPAddress.TryParse(parsedUri.DnsSafeHost, out parsedIPAddress))
                    {

                        bubble.openInternetBrowserAt("http:\\" + parsedIPAddress.ToString());

                    }

                }
                catch (Exception)
                {

                    bubble.logAddLine("Unable to connect webcam index site.");

                }

            }
            else
            {

                VideoCaptureDevice localSource = new VideoCaptureDevice(selectedWebcam);
                localSource.DisplayPropertyPage(IntPtr.Zero); // non-modal

            }
        }