示例#1
0
 public NewMandelbrot(int x1, int y1, ParamForJandM d)
 {
     this.x1 = x1;
     this.y1 = y1;
     xy      = (float)x1 / (float)y1;
     bitmap  = new Bitmap(x1, y1);
     g1      = Graphics.FromImage(bitmap);
     Domain  = d;
 }
示例#2
0
 public MainForm()
 {
     InitializeComponent();
     if (!SierpinskiRB.Checked)
     {
         SierpinskiToolsGB.Hide();
     }
     if (!JuliaRB.Checked)
     {
         JuliaTools.Hide();
     }
     if (!MandelbrotRB.Checked)
     {
         SwitchFractalGB.Hide();
     }
     levelOfTriangle = Convert.ToInt32(LevelNUD.Value);
     Jp     = Convert.ToDouble(JpTB.Text);
     Jq     = Convert.ToDouble(JqTB.Text);
     Domain = new ParamForJandM(-2.0, 2.0, -2.0, 2.0);
     nwM    = new NewMandelbrot(Width, Height, Domain);
     nwM.Start();
 }
示例#3
0
 private void CreateNewDomain(TextBox xmin, TextBox xmax, TextBox ymin, TextBox ymax)
 {
     Domain = new ParamForJandM(Convert.ToDouble(xmin.Text), Convert.ToDouble(xmax), Convert.ToDouble(ymin.Text), Convert.ToDouble(ymax.Text));
 }
示例#4
0
 public void UpdateDomain(ParamForJandM d)
 {
     Domain = d;
 }