コード例 #1
0
 public void StartPreview(PictureBox leftPictureBox, PictureBox rightPictureBox)
 {
     videoCap.StartPreview(leftPictureBox, rightPictureBox);
     videoCap.CaptureBMPpreview();
     imageX = new ImageX(videoCap.PreviewImage[0],
                         videoCap.PreviewImage[1],
                         center);
 }
コード例 #2
0
        public MainWindow(PowerMode mode, Form powerModeWindow)
        {
            InitializeComponent();
            _control  = ControlClass.GetInstance();
            _mode     = mode;
            _lastForm = powerModeWindow;
            switch (_mode)
            {
            case PowerMode.High:
                PowerModeLabel.Text = "工作模式:高功率"; break;

            case PowerMode.Medium:
                PowerModeLabel.Text = "工作模式:中功率";
                Calibrate.Enabled   = true;
                break;

            case PowerMode.Low:
                PowerModeLabel.Text = "工作模式:低功率"; break;
            }
            _control.StartPreview(AnglePicture, ShiftPicture);

            img = _control.imageX;
            UpDateTask.Start();
        }