Пример #1
0
        //                                                  //Camera Dye and Temperature
        protected void ValueChanged(object sender, EventArgs e)
        {
            var TempAndTint = new AVCaptureWhiteBalanceTemperatureAndTintValues
                                  (this.sldTemperature.Value, this.sldTint.Value);
            var StatusDev = acdDevice.GetDeviceWhiteBalanceGains(TempAndTint);

            if (
                acdDevice.LockForConfiguration(out nsError)
                )
            {
                StatusDev = Settings(StatusDev);
                acdDevice.SetWhiteBalanceModeLockedWithDeviceWhiteBalanceGains(StatusDev, null);
                acdDevice.UnlockForConfiguration();
            }
            sldTint.BeginInvokeOnMainThread(() =>
            {
                sldTint.Value = TempAndTint.Tint;
            });
            sldTemperature.BeginInvokeOnMainThread(() =>
            {
                sldTemperature.Value =
            });
        }