Point2D() public method

public Point2D ( System.Drawing.CGPoint pt ) : PointF
pt System.Drawing.CGPoint
return System.Drawing.PointF
Ejemplo n.º 1
0
 public void AddLines(Graphics g, ChartStyle cs)
 {
     // Plot lines:
     foreach (DataSeries ds in DataSeriesList) {
         if (ds.LineStyle.IsVisible == true) {
             var aPen = new Pen(ds.LineStyle.LineColor, ds.LineStyle.Thickness);
             aPen.DashStyle = ds.LineStyle.Pattern;
             for (int i = 1; i < ds.PointList.Count; i++)
                 g.DrawLine (aPen, cs.Point2D ((CGPoint)ds.PointList[i - 1]), cs.Point2D ((CGPoint)ds.PointList[i]));
             aPen.Dispose ();
         }
     }
 }
Ejemplo n.º 2
0
 public void AddLines(Graphics g, ChartStyle cs)
 {
     // Plot lines:
     foreach (DataSeries ds in DataSeriesList)
     {
         if (ds.LineStyle.IsVisible == true)
         {
             var aPen = new Pen(ds.LineStyle.LineColor, ds.LineStyle.Thickness);
             aPen.DashStyle = ds.LineStyle.Pattern;
             for (int i = 1; i < ds.PointList.Count; i++)
             {
                 g.DrawLine(aPen, cs.Point2D((CGPoint)ds.PointList[i - 1]), cs.Point2D((CGPoint)ds.PointList[i]));
             }
             aPen.Dispose();
         }
     }
 }