private static PointF[] ToPointsF(Point2[] p)
 {
     PointF[] result = new PointF[p.Length];
     for (int i = 0; i < result.Length; i++)
     {
         result[i] = GraphUtils.ToPointF(p[i]);
     }
     return(result);
 }
 public void DrawString(string s, Font2 font, Brush2 brush, Point2 point, StringFormat2 format)
 {
     gc.DrawString(s, GraphUtils.ToFont(font), GetBrush(brush), GraphUtils.ToPointF(point),
                   GraphUtils.ToStringFormat(format));
 }
 public void DrawString(string s, Font2 font, Brush2 brush, Point2 location)
 {
     gc.DrawString(s, GraphUtils.ToFont(font), GetBrush(brush), GraphUtils.ToPointF(location));
 }