Exemplo n.º 1
0
        private void brightness_Click(object sender, RoutedEventArgs e)
        {
            Dialogs.Brightness dlg = new Dialogs.Brightness();

            dlg.Owner            = this;
            dlg.adjustBrightness = 0;

            if (dlg.ShowDialog() == true)
            {
                myImage.adjustBrightness(dlg.adjustBrightness);
            }

            mainImage.Source = myImage.scr_image;
            mainImage.InvalidateVisual();
        }
Exemplo n.º 2
0
        private void brightness_Click(object sender, RoutedEventArgs e)
        {
            Dialogs.Brightness dlg = new Dialogs.Brightness();

            dlg.Owner = this;
            dlg.adjustBrightness = 0;

            if (dlg.ShowDialog() == true)
            {
                myImage.adjustBrightness(dlg.adjustBrightness);
            }

            mainImage.Source = myImage.scr_image;
            mainImage.InvalidateVisual();
        }