Пример #1
0
        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);
            }
        }
Пример #2
0
        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);
            }
        }