Esempio n. 1
0
 //the method adds a figure to the FigureList class, and draws the desired figure (Curve)
 private void button6_Click(object sender, EventArgs e)
 {
     figlist.figarray.Add("Cur");
     using (grx = Graphics.FromImage(bmp))
     {
         grx.DrawCurve(Pens.Black, figlist.GetCurve(Convert.ToInt32(textBox24.Text), Convert.ToInt32(textBox23.Text), Convert.ToInt32(textBox22.Text), Convert.ToInt32(textBox21.Text)));
     }
     pictureBox1.Image = bmp;
 }