Esempio n. 1
0
        private void PlotButton_Click(object sender, RoutedEventArgs e)
        {
            BMAP.width            = BMAP.height = Int32.Parse(PlotIterationBox.Text);
            PlotStatLabel.Content = BMAP.width * BMAP.height + " iterations.";
            i = (int)PlotSourceBox.SelectedValue;
            ImageSource imageSource = BMAP.GetMapImage((int)PlotSourceBox.SelectedValue);

            Plottable.Source = imageSource;
        }
Esempio n. 2
0
        private void PlotSaveButton_Click(object sender, RoutedEventArgs e)
        {
            BMAP.width            = BMAP.height = Int32.Parse(PlotIterationBox.Text);
            PlotStatLabel.Content = BMAP.width * BMAP.height + " iterations.";
            Bitmap      bmp         = BMAP.GetMap(i);
            ImageSource imageSource = BMAP.BitmapImageFromBitmap(bmp);

            Plottable.Source = imageSource;
            bmp.Save(PlotSourceBox.SelectedItem + ".png", System.Drawing.Imaging.ImageFormat.Png);
        }