예제 #1
0
파일: FMain.cs 프로젝트: BoborikOlga/Paint
        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);
        }
예제 #2
0
파일: FMain.cs 프로젝트: BoborikOlga/Paint
        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);
        }
예제 #3
0
파일: FMain.cs 프로젝트: BoborikOlga/Paint
        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);
        }
예제 #4
0
파일: FMain.cs 프로젝트: BoborikOlga/Paint
        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);
        }
예제 #5
0
파일: FMain.cs 프로젝트: BoborikOlga/Paint
        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);
        }
예제 #6
0
파일: FMain.cs 프로젝트: BoborikOlga/Paint
        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);
        }