public void DrawCircle(Figure f) { graph.DrawEllipse(f.pen, f.p.x, f.p.y, f.d.x, f.d.y); picture.Image = bmpN; picture.Image = bmp; }
void initfigure() { f = new Figure(50, 50, 80, 80, 3, 2); f1 = new Figure(150, 150, 30, 30, -6, -7); f2 = new Figure(190, 190, 50, 50, -6, -3); f3 = new Figure(160, 160, 90, 90, 6, 2); f4 = new Figure(180, 180, 60, 60, -6, -4); f5 = new Figure(250, 250, 50, 50, -4, -6); FigVam.Add(f); FigVam.Add(f1); FigVam.Add(f2); // FigVam.Add(f3); // FigVam.Add(f4); // FigVam.Add(f5); f.setMinMax(0, 0, picture.Width, picture.Height); }
public void EraseLine(Figure f1, Figure f2) { graph.DrawLine(PenBack, f1.p.x + (f1.d.x / 2), f1.p.y + (f1.d.y / 2), f2.p.x + (f2.d.x / 2), f2.p.y + (f2.d.y / 2)); picture.Image = bmp; //graph.Clear(Color.White); }
public void EraseCircle(Figure f) { graph.DrawEllipse(PenBack, f.p.x, f.p.y, f.d.x, f.d.y); picture.Image = bmp; }
public void DrawLine(Figure f1, Figure f2) { graph.DrawLine(penForge, f1.p.x + (f1.d.x / 2), f1.p.y + (f1.d.y / 2), f2.p.x + (f2.d.x / 2), f2.p.y + (f2.d.y / 2)); picture.Image = bmp; }