Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }
Example #5
0
        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);
        }
Example #6
0
        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);
        }