示例#1
0
 private void numericUpDown1_ValueChanged(object sender, EventArgs e)
 {
     drawer = new Drawer(pictureBox1.Width, pictureBox1.Height)
     {
         Function = new Function((float)numericUpDown1.Value),
     };
 }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     timer1.Start();
     drawer = new Drawer(pictureBox1.Width, pictureBox1.Height)
     {
         Function = new Function((float)numericUpDown1.Value),
     };
 }
示例#3
0
 private void Redraw()
 {
     drawer = new Drawer(pictureBox1.Width, pictureBox1.Height)
     {
         Function = new Function((float)numericUpDown1.Value),
         RotateAngle = (float)numericUpDown2.Value,
         FigureCount = (int)numericUpDown3.Value
     };
     drawer.DrawImage();
     if(checkBox2.Checked)
         drawer.DrawMirrorImage();
     drawer.Draw(pictureBox1.CreateGraphics());
 }