Example #1
0
        public MainWindow()
        {
            InitializeComponent();
            try
            {
                _pnoise = new PerlinNoiseGenerator2D(4000, 4000);
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message + "\n" + "Source: MainWindow()");
            }

            var uri = new Uri(@"\cat.png", UriKind.Relative);

            ImgDynamic.Source = new BitmapImage(uri);
        }
Example #2
0
 private void GenerateStatic(object sender, RoutedEventArgs e)
 {
     _pnoise = new PerlinNoiseGenerator2D(4000, 4000);
     GenStaticMain();
 }