Esempio n. 1
0
        private void UpdateStatusBar()
        {
            String statusString;

            statusString = String.Format(
                "Image size: {0} x {1}",
                m_rawImage.cols,
                m_rawImage.rows);

            toolStripStatusLabelImageSize.Text = statusString;

            try
            {
                statusString = String.Format(
                    "Requested frame rate: {0}Hz",
                    m_camera.GetProperty(PropertyType.FrameRate).absValue);
            }
            catch (FC2Exception ex)
            {
                statusString = "Requested frame rate: 0.00Hz";
            }

            toolStripStatusLabelFrameRate.Text = statusString;

            toolStripStatusSelection.Text = selection;

            /*
             *
             * TimeStamp timestamp;
             *
             * lock (this)
             * {
             * timestamp = m_rawImage.timeStamp;
             * }
             *
             * statusString = String.Format(
             * "Timestamp: {0:000}.{1:0000}.{2:0000}",
             * timestamp.cycleSeconds,
             * timestamp.cycleCount,
             * timestamp.cycleOffset);
             *
             * toolStripStatusLabelTimestamp.Text = statusString;*/
            statusStrip1.Refresh();
        }
Esempio n. 2
0
        private void UpdateSpinButtonValueFromCamera()
        {
            CameraProperty camProp = m_camera.GetProperty(m_propType);

            UpdateSpinButtonValue(camProp);
        }