private void button3_Click(object sender, EventArgs e) { int width = (int)numericXres.Value; int height = (int)numericYres.Value; Subdivision.GenerateDemoPoints(width, height); doRedraw(); }
public Form1() { InitializeComponent(); String[] tok = "$Rev: 251 $".Split(' '); Text += " (rev: " + tok[1] + ')'; Subdivision.AddUserPath(); Subdivision.ResetRndSeed(); int width = (int)numericXres.Value; int height = (int)numericYres.Value; Subdivision.GenerateDemoPoints(width, height); output = new Bitmap(width, height, System.Drawing.Imaging.PixelFormat.Format24bppRgb); doRedraw(); }