9. Gain Auto, Gain Value(Absolute value) 설정 방법
게시일: Aug 04, 2015 7:3:15 AM
TIS.Imaging.VCDPropertyItem Gain = null;
Gain = icImagingControl1.VCDPropertyItems.FindItem(TIS.Imaging.VCDIDs.VCDID_Gain);
TIS.Imaging.VCDSwitchProperty GainSwitch;
GainSwitch = (TIS.Imaging.VCDSwitchProperty)Gain.Elements.FindInterface(
TIS.Imaging.VCDIDs.VCDElement_Auto + ":" +
TIS.Imaging.VCDIDs.VCDInterface_Switch);
if (GainSwitch == null)
{
MessageBox.Show("Automation of gain is not supported by the current device!");
}
else
{
GainSwitch.Switch = false; // Auto Gain을 Disable
}
TIS.Imaging.VCDAbsoluteValueProperty AbsValItf;
// Retrieve an absolute value interface for Gain
AbsValItf = (TIS.Imaging.VCDAbsoluteValueProperty)icImagingControl1.VCDPropertyItems.FindInterface(
TIS.Imaging.VCDIDs.VCDID_Gain + ":" +
TIS.Imaging.VCDIDs.VCDElement_Value + ":" +
TIS.Imaging.VCDIDs.VCDInterface_AbsoluteValue);
if (AbsValItf != null)
{
AbsValItf.Value = 20; // 변경하고자 하는 값을 설정
}
else
{
MessageBox.Show("There is no absolute value interface for the value element of the gain property item");
}