public EllipsRotate(PictureBox _picBox, Graphics _graph, DrawAxes _axes, Pen _pen_Ellipse, double _delta_t) { graph = _graph; picBox = _picBox; axes = _axes; penEllips = _pen_Ellipse; delta_t = _delta_t; a = (int)(picBox.Width / 4); // большая ширина эллипса xCentr = (int)(picBox.Width / 2); yCentr = (int)(picBox.Height / 2); }
public Form1() { InitializeComponent(); graph = pictureBox1.CreateGraphics(); x_centre = (int)(pictureBox1.Width / 2); y_centre = (int)(pictureBox1.Height / 2); pen_Ellipse = new Pen(Brushes.Lime, 1); pen_Axes = new Pen(Brushes.Blue, 1); a = (int)(pictureBox1.Width / 4); // большая ширина эллипса b = (int)(pictureBox1.Height / 4); //i = 5; // параметр для отрисовки numericUpDown1 //b = (int)(b * (10 - i) / 10); // малая ширина эллипса axes = new DrawAxes(pictureBox1, graph, pen_Axes, x_centre, y_centre); numericUpDown1.Maximum = 360; }