예제 #1
0
        private void OnButtonEditPaletteClick(object sender, EventArgs e)
        {
            Int32[]           Palette = (Int32[])pars.GetValue("PALETTE");
            EditPaletteDialog dia     = new EditPaletteDialog();

            dia.Palette = (Int32[])Palette.Clone();
            if (dia.ShowDialog() == DialogResult.OK)
            {
                pars.SetValue("PALETTE", dia.Palette);
                CalcPreview();
            }
        }
예제 #2
0
        private void buttonPalett_Click(object sender, EventArgs e)
        {
            int[] Palette = (int[])frac.Parameters.GetValue("PALETTE");
              EditPaletteDialog dia = new EditPaletteDialog();
              dia.ColorCount = (int)frac.Parameters.GetValue("COLOR_COUNT");
              dia.Palette = (int[])Palette.Clone();

              if (dia.ShowDialog() == DialogResult.OK)
              {
            frac.Parameters.SetValue("PALETTE", dia.Palette);
            frac.Parameters.SetValue("COLOR_COUNT", dia.ColorCount);
            RenderFractal(true);
              }
        }