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; }
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(); }
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)); }
public void UpdateDomain(ParamForJandM d) { Domain = d; }