Esempio n. 1
0
        /// <summary>
        /// initialise the right camera
        /// </summary>
        private void initCameraRight2()
        {
            global_variables.CaptureInformationRight.CaptureInfo.PreviewWindow = this.picRightImage;

            rightbmp = new Bitmap(global_variables.default_resolution_width, global_variables.default_resolution_height, PixelFormat.Format24bppRgb);
            picRightImage.Image = rightbmp;
            picRightImage.Visible = true;

            global_variables.ConfParamCamRight();
            global_variables.PrepareCamRight(global_variables.CaptureInformationRight.PathVideo);

            //Define RefreshImage as event handler of FrameCaptureComplete
            global_variables.CaptureInformationRight.CaptureInfo.FrameCaptureComplete += new Capture.FrameCapHandler(this.RefreshRightImage);

            global_variables.CaptureInformationRight.CaptureInfo.CaptureFrame();

            global_variables.CaptureInformationRight.Counter = 1;
            global_variables.CaptureInformationRight.CounterFrames = 1;

            this.Show();
        }
Esempio n. 2
0
        private void initCameraRight2()
        {
            //rightbmp = New Bitmap(CaptureInformationLeft.ConfWindow.Width, CaptureInformationLeft.ConfWindow.Height, System.Drawing.Imaging.PixelFormat.Format24bppRgb)
            rightbmp              = new Bitmap(320, 240, PixelFormat.Format24bppRgb);
            picRightImage.Image   = rightbmp;
            picRightImage.Visible = false;

            global_variables.CaptureInformationRight.CaptureInfo.PreviewWindow = this.picRightImage;

            global_variables.ConfParamCamRight();
            global_variables.PrepareCamRight(global_variables.CaptureInformationRight.PathVideo);

            //Define RefreshImage as event handler of FrameCaptureComplete
            global_variables.CaptureInformationRight.CaptureInfo.FrameCaptureComplete += new Capture.FrameCapHandler(this.RefreshRightImage);

            global_variables.CaptureInformationRight.CaptureInfo.CaptureFrame();

            global_variables.CaptureInformationRight.Counter       = 1;
            global_variables.CaptureInformationRight.CounterFrames = 1;

            this.Show();
        }