Esempio n. 1
0
        private void button_draw_Click_1(object sender, EventArgs e)
        {
            color = Color.FromArgb(Convert.ToInt32(R_color.Text), Convert.ToInt32(G_color.Text), Convert.ToInt32(B_color.Text));
            FuncSetts setts  = new FuncSetts(Convert.ToInt32(a_tag.Text), Convert.ToInt32(b_tag.Text), Convert.ToSingle(step.Text));
            Drawer    drawer = new Drawer(drawBox, Convert.ToInt32(diam_heigth.Text), Convert.ToInt32(diam_width.Text), setts, Convert.ToInt32(num_of_graphics.Text), color);

            drawer.DrawFuncByStep();
        }
Esempio n. 2
0
 public Drawer(PictureBox pictureHolder, int height, int width, FuncSetts funcSetts, int numOfTimes, Color diamColor)
 {
     this.pictureHolder = pictureHolder;
     this.height        = height;
     this.width         = width;
     this.funcSetts     = funcSetts;
     this.numOfTimes    = numOfTimes;
     center             = new PointF(pictureHolder.Width / 2, pictureHolder.Height / 2);
     p_func             = new Pen(Color.Red);
     p_diam             = new Pen(diamColor);
     p_coord            = new Pen(Color.Black);
     g = pictureHolder.CreateGraphics();
 }