/// <summary> /// 设置IsoSpeed /// </summary> public static async Task SetIsoSpeed(IsoSpeedPreset isoSpeed) { try { await MainCamera.VideoDeviceController.IsoSpeedControl.SetPresetAsync(isoSpeed); } catch (Exception ex) { } }
/// <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); }
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; }
public async void OnIsoSettingsChangedAsync(object sender, IsoSpeedPreset e) { await SetIsoSpeedAsync(e); }