Beispiel #1
0
        protected void CreatePalette_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            if (ofd.ShowDialog() ?? true)
            {
                CPPNSettings.ColorPalette = ColorPalette.FromImageSOM(ofd.FileName, 16, CPPNSettings.PaletteSize);

                CPPNSettings.UseColor = true;

                RenderPopulation();
            }
        }