示例#1
0
 /// <summary>
 /// 设置IsoSpeed
 /// </summary>
 public static async Task SetIsoSpeed(IsoSpeedPreset isoSpeed)
 {
     try
     {
         await MainCamera.VideoDeviceController.IsoSpeedControl.SetPresetAsync(isoSpeed);
     }
     catch (Exception ex)
     {
     }
 }
示例#2
0
        /// <summary>
        /// Sets the given ISO speed.
        /// </summary>
        /// <param name="isoSpeedPreset"></param>
        /// <returns>True, if successful.</returns>
        public async Task <bool> SetIsoSpeedAsync(IsoSpeedPreset isoSpeedPreset)
        {
            bool success = false;

            if (IsIsoSupported && isoSpeedPreset != IsoSpeedPreset)
            {
                await _videoDeviceController.IsoSpeedControl.SetPresetAsync(isoSpeedPreset);

                success = true;
            }

            return(success);
        }
示例#3
0
 public void Save()
 {
     _localSettings.Values[KeyAppMode]         = AppMode.ToString();
     _localSettings.Values[KeyTargetColorR]    = TargetColor.R;
     _localSettings.Values[KeyTargetColorG]    = TargetColor.G;
     _localSettings.Values[KeyTargetColorB]    = TargetColor.B;
     _localSettings.Values[KeyThreshold]       = Threshold;
     _localSettings.Values[KeyFlash]           = Flash;
     _localSettings.Values[KeyTorch]           = Torch;
     _localSettings.Values[KeyMode]            = Mode.ToString();
     _localSettings.Values[KeyRemoveNoise]     = RemoveNoise;
     _localSettings.Values[KeyApplyEffectOnly] = ApplyEffectOnly;
     _localSettings.Values[KeyIsoSpeedPreset]  = IsoSpeedPreset.ToString();
     _localSettings.Values[KeyExposure]        = Exposure;
 }
示例#4
0
 public async void OnIsoSettingsChangedAsync(object sender, IsoSpeedPreset e)
 {
     await SetIsoSpeedAsync(e);
 }