예제 #1
0
        private void NumericUpDown_GAIN_ValueChanged(object sender, EventArgs e)
        {
            if (m_nDeviceCurSel == -1)
            {
                return;
            }
            int nGain = (int)(NumericUpDown_GAIN.Value);

            KSJApiBase.KSJ_SetParam(m_nDeviceCurSel, KSJApiBase.KSJ_PARAM.KSJ_RED, nGain);
            KSJApiBase.KSJ_SetParam(m_nDeviceCurSel, KSJApiBase.KSJ_PARAM.KSJ_GREEN, nGain);
            KSJApiBase.KSJ_SetParam(m_nDeviceCurSel, KSJApiBase.KSJ_PARAM.KSJ_BLUE, nGain);
        }
예제 #2
0
        private void NumericUpDown_EXPOSURE_LINES_ValueChanged(object sender, EventArgs e)
        {
            if (m_nDeviceCurSel == -1)
            {
                return;
            }
            int m_dwExposureLines = (int)(NumericUpDown_EXPOSURE_LINES.Value);

            KSJApiBase.KSJ_SetParam(m_nDeviceCurSel, KSJApiBase.KSJ_PARAM.KSJ_EXPOSURE_LINES, m_dwExposureLines);

            GetRealExposureTime();
        }