private void Dot() { Graphics g = PBPaintField.CreateGraphics(); Dot dot = new Dot(cord[cord.Count - 1].X, cord[cord.Count - 1].Y); PaintDot dCr = new PaintDot(); dCr.Draw(g, pen, dot); }
private void Line() { Graphics g = PBPaintField.CreateGraphics(); Line line = new Line(cord[cord.Count - 2].X, cord[cord.Count - 2].Y, cord[cord.Count - 1].X, cord[cord.Count - 1].Y); PaintLine lCr = new PaintLine(); lCr.Draw(g, pen, line); }
private void Rectangle() { Graphics g = PBPaintField.CreateGraphics(); Rectangle rect = new Rectangle(cord[cord.Count - 2].X, cord[cord.Count - 2].Y, cord[cord.Count - 1].X, cord[cord.Count - 1].Y); PaintRectangle recCr = new PaintRectangle(); recCr.Draw(g, pen, rect); }
private void Circle() { Graphics g = PBPaintField.CreateGraphics(); Ellips ellips = new Ellips(cord[cord.Count - 2].X, cord[cord.Count - 2].Y, cord[cord.Count - 1].X, cord[cord.Count - 1].Y); PaintEllips elCr = new PaintEllips(); elCr.Draw(g, pen, ellips); }
private void Star() { Graphics g = PBPaintField.CreateGraphics(); Star star = new Star(cord[cord.Count - 5].X, cord[cord.Count - 5].Y, cord[cord.Count - 4].X, cord[cord.Count - 4].Y, cord[cord.Count - 3].X, cord[cord.Count - 3].Y, cord[cord.Count - 2].X, cord[cord.Count - 2].Y, cord[cord.Count - 1].X, cord[cord.Count - 1].Y); PaintStar stCr = new PaintStar(); stCr.Draw(g, pen, star); }
private void Triangle() { Graphics g = PBPaintField.CreateGraphics(); Triangle tr = new Triangle(cord[cord.Count - 3].X, cord[cord.Count - 3].Y, cord[cord.Count - 2].X, cord[cord.Count - 2].Y, cord[cord.Count - 1].X, cord[cord.Count - 1].Y); PaintTriangle trCr = new PaintTriangle(); trCr.Draw(g, pen, tr); }