private async void BrightnessItem_OnClick(object sender, RoutedEventArgs e) { PixelManipulation manipulation = new PixelManipulation("Podaj wartość do jasności:"); var result = await manipulation.ShowAsync(); if (result == ContentDialogResult.Primary) { DrawingCanvas.Background.AdjustBrightness((float)manipulation.PixelManipulationValue); } }
private async void MultiplyValueItem_OnClick(object sender, RoutedEventArgs e) { PixelManipulation manipulation = new PixelManipulation("Podaj wartość do pomnożenia:"); var result = await manipulation.ShowAsync(); if (result == ContentDialogResult.Primary) { DrawingCanvas.Background.MultiplyPixelByValue(manipulation.PixelManipulationValue); } }