Exemplo n.º 1
0
        private void Contrast_Click(object sender, RoutedEventArgs e)
        {
            BrightnessContrastWindow controlPane = new BrightnessContrastWindow(this);

            tempImage = Utils.GetBitmapFromCanvas(MainCanvas).ConvertToGrayscale();
            controlPane.ResizeMode = ResizeMode.NoResize;
            controlPane.ShowDialog();
        }
Exemplo n.º 2
0
 internal static void BrightnessContrastExecuted(Window mainWindow, ExecutedRoutedEventArgs e)
 {
     if (bcWindow == null)
     {
         bcWindow = new BrightnessContrastWindow(mainWindow);
         bcWindow.OnClosedOnce = () => bcWindow = null;
     }
     bcWindow.Show();
     bcWindow.Activate();
     e.Handled = true;
 }
Exemplo n.º 3
0
 internal static void BrightnessContrastExecuted(Window mainWindow, ExecutedRoutedEventArgs e)
 {
     if (bcWindow == null)
     {
         bcWindow = new BrightnessContrastWindow(mainWindow);
         bcWindow.OnClosedOnce = () => bcWindow = null;
     }
     bcWindow.Show();
     bcWindow.Activate();
     e.Handled = true;
 }