示例#1
0
 protected void DrawTmpSegment(Graphics graph, Pen pen, PointF point1, PointF point2, bool useTransform, bool temporary)
 {
     // Calculate intersection with bounding rectangle
      Rectangle2D rect2D = new Rectangle2D(GraphRectangle);
      Segment2D newLine = new Segment2D(point1, point2);
      if (useTransform)
      {
     newLine.Draw(graph, pen, this.matrixValueToScreen, rect2D, this.IsLogScale);
      }
      else
      {
     newLine.Draw(graph, pen, GraphControl.matrixIdentity, rect2D, false);
      }
 }