Point2D() public méthode

public Point2D ( PointF pt ) : PointF
pt System.Drawing.PointF
Résultat System.Drawing.PointF
Exemple #1
0
 public void AddLines(Graphics g, ChartStyle cs)
 {
     // Plot lines:
     foreach (DataSeries ds in DataSeriesList)
     {
         if (ds.LineStyle.IsVisible == true)
         {
             Pen 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((PointF)ds.PointList[i - 1]),
                            cs.Point2D((PointF)ds.PointList[i]));
             }
             aPen.Dispose();
         }
     }
 }
 public void AddLines(Graphics g, ChartStyle cs)
 {
     // Plot lines:
     foreach (DataSeries ds in DataSeriesList)
     {
         if (ds.LineStyle.IsVisible == true)
         {
             Pen 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((PointF)ds.PointList[i - 1]),
                                  cs.Point2D((PointF)ds.PointList[i]));
             }
             aPen.Dispose();
         }
     }
 }