コード例 #1
0
ファイル: Form1.cs プロジェクト: oleksandrkin/graphics
 private void numericUpDown1_ValueChanged(object sender, EventArgs e)
 {
     drawer = new Drawer(pictureBox1.Width, pictureBox1.Height)
     {
         Function = new Function((float)numericUpDown1.Value),
     };
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: oleksandrkin/graphics
 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
ファイル: Form1.cs プロジェクト: oleksandrkin/graphics
 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());
 }