Beispiel #1
0
        private void TakePicturePB_Click(object sender, RoutedEventArgs e)
        {
            if (m_imager == null)
            {
                return;
            }


            m_imager.m_lambda.OpenShutterA(); Thread.Sleep(5);


            UInt16[] grayRoiImage;
            int      exposure = Convert.ToInt32(Exposure.Text);



            bool success = m_imager.AcquireImage(exposure, out grayRoiImage);

            if (success)
            {
                // display image
                m_imager.ProcessAndDisplayImage(grayRoiImage, m_ID, vm.ApplyMask, m_lowerSliderValue, m_upperSliderValue);
            }

            m_imager.m_lambda.CloseShutterA();

            m_enableRangerSliderUpdate = true;
        }