Beispiel #1
0
 private void AutoCheck_CheckedChanged(object sender, EventArgs e)
 {
     if (icImagingControl1.DeviceValid)
     {
         if (vCDProp.AutoAvailable(TIS.Imaging.VCDIDs.VCDID_Gain))
         {
             vCDProp.Automation[TIS.Imaging.VCDIDs.VCDID_Gain] = camView.Auto_Checked();
             camView.Slider_Set(CamView2.ControlsE.GainS, SliderControls.Value, vCDProp.RangeValue[TIS.Imaging.VCDIDs.VCDID_Gain]);
             camView.Set_Enabled(CamView2.ControlsE.GainS, !camView.Auto_Checked());
         }
         if (vCDProp.AutoAvailable(TIS.Imaging.VCDIDs.VCDID_Exposure))
         {
             vCDProp.Automation[TIS.Imaging.VCDIDs.VCDID_Exposure] = camView.Auto_Checked();
             camView.Slider_Set(CamView2.ControlsE.ExposureS, SliderControls.Value, vCDProp.RangeValue[TIS.Imaging.VCDIDs.VCDID_Exposure]);
             camView.Set_Enabled(CamView2.ControlsE.ExposureS, !camView.Auto_Checked());
         }
     }
 }
Beispiel #2
0
        private async void PlayStopButton_Click(object sender, EventArgs e)
        {
            if (icImagingControl1.LiveVideoRunning)
            {
                await Task.Run(() => StopLiveVideo());

                playStopButton.Image = Properties.Resources.NEXT;
                camSelButton.Enabled = true;
                videoMode            = false;
                camView?.UpdatePlayStopButton(ref videoMode);
                camView?.Set_Enabled(CamView2.ControlsE.CameraB, true);
            }
            else
            {
                StartLiveVideo();
            }
        }