Exemple #1
0
        void resize_Click(object sender, RoutedEventArgs e)
        {
            Dialogs.Resize dlg = new Dialogs.Resize();

            dlg.Owner     = this;
            dlg.resHeight = 100;
            dlg.resWidth  = 100;

            if (dlg.ShowDialog() == true)
            {
                myImage.resize(dlg.resWidth, dlg.resHeight);
            }

            mainImage.Source = myImage.scr_image;
            mainImage.InvalidateVisual();
        }
Exemple #2
0
        void resize_Click(object sender, RoutedEventArgs e)
        {
            Dialogs.Resize dlg = new Dialogs.Resize();

            dlg.Owner = this;
            dlg.resHeight = 100;
            dlg.resWidth = 100;

            if ( dlg.ShowDialog() == true )
            {
                myImage.resize(dlg.resWidth, dlg.resHeight);
            }

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