Ejemplo n.º 1
0
 /// <summary>
 /// Draws a line.
 /// </summary>
 public void Draw(C2DLine Line, Graphics graphics, Pen pen)
 {
     C2DPoint pt1 = Line.GetPointFrom();
     C2DPoint pt2 = Line.GetPointTo();
     this.ScaleAndOffSet(pt1);
     this.ScaleAndOffSet(pt2);
     graphics.DrawLine(pen, (int)pt1.x, (int)pt1.y, (int)pt2.x, (int)pt2.y);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Draws a line.
        /// </summary>
        public void Draw(C2DLine Line, Graphics graphics, Pen pen)
        {
            C2DPoint pt1 = Line.GetPointFrom();
            C2DPoint pt2 = Line.GetPointTo();

            this.ScaleAndOffSet(pt1);
            this.ScaleAndOffSet(pt2);
            graphics.DrawLine(pen, (int)pt1.x, (int)pt1.y, (int)pt2.x, (int)pt2.y);
        }