Ejemplo n.º 1
0
        public void SetGain(int gainValue)
        {
            System.Diagnostics.Debug.Assert(m_pHandle != IntPtr.Zero);
            m_kGain = gainValue;
            HVSTATUS status = HVSTATUS.STATUS_OK;

            for (int i = 0; i < 4; i++)
            {
                status = USBCameraAPI.HVAGCControl(m_pHandle, (byte)(HV_CHANNEL.RED_CHANNEL + i), m_kGain);
                USBCameraAPI.HV_VERIFY(status);
            }
        }