public void SetColorImageExposureAndGain(float exposure, float gain)
        {
#if DSAPI
            DSAPI.setColorExposureAndGain(exposure, gain);
#else
            this.Device.SetColorAutoExposure(false);
            this.Device.SetColorExposure((int)exposure);
            this.Device.SetColorGain((int)gain);
#endif
        }
        public void SetDepthImageExposureAndGain(float exposure, float gain)
        {
#if DSAPI
            DSAPI.setDepthExposureAndGain(exposure, gain);
#else
            this.Device.SetDSLeftRightAutoExposure(false);
            this.Device.SetDSLeftRightExposure((int)exposure);
            this.Device.SetDSLeftRightGain((int)gain);
#endif
        }