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); }
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(); }