Ejemplo n.º 1
0
        //THE ACTUAL SHAPE RENDERING IS HERE

        public void render(Shape.Line line, int thickness = 1, Brush color = null)
        {
            Pen pcolor;

            if (color == null)
            {
                pcolor = new Pen(Brushes.Black, thickness);
            }
            else
            {
                pcolor = new Pen(color, thickness);
            }
            LineStruct ls = new LineStruct(line, pcolor);

            renderlist.Add(ls);
            renderct++;
        }
Ejemplo n.º 2
0
 public LineStruct(Shape.Line l, Pen c)
 {
     line = l;
     p    = c;
 }
Ejemplo n.º 3
0
 public LineStruct(Shape.Line l, Pen p)
 {
     line   = l;
     this.p = p;
 }