private static GraphicsPath GetGraphicsPath(GraphicsPath2 path)
 {
     byte[] types = new byte[path.PathPoints.Length];
     for (int i = 1; i < types.Length; i++)
     {
         types[i] = 1;
     }
     return(new GraphicsPath(ToPointsF(path.PathPoints), new byte[path.PathPoints.Length]));
 }
Beispiel #2
0
 public void DrawPath(Pen2 pen, GraphicsPath2 path)
 {
     SetPen(pen);
     for (int index = 0; index < path.PathPoints.Length; index++)
     {
         Point2 point = path.PathPoints[index];
         if (index == 0)
         {
             template.MoveTo(point.X, currentHeight - point.Y);
         }
         else
         {
             template.LineTo(point.X, currentHeight - point.Y);
             template.Stroke();
             template.MoveTo(point.X, currentHeight - point.Y);
         }
     }
     template.Stroke();
 }
Beispiel #3
0
 public void DrawPath(Pen2 pen, GraphicsPath2 path)
 {
     throw new System.NotImplementedException();
 }
Beispiel #4
0
 /// <summary>
 /// Draws a GraphicsPath.
 /// </summary>
 /// <param name="pen">Pen that determines the color, width, and style of the path.</param>
 /// <param name="path">GraphicsPath to draw.</param>
 public void DrawPath(Pen2 pen, GraphicsPath2 path)
 {
     DrawLines(pen, path.PathPoints);
 }
Beispiel #5
0
 public void DrawPath(Pen2 pen, GraphicsPath2 path)
 {
     g.DrawPath(pen.Scale(s), path.Scale(s));
 }
 public void DrawPath(Pen2 pen, GraphicsPath2 path)
 {
     gc.DrawPath(GetPen(pen), GetGraphicsPath(path));
 }
 public void DrawPath(Pen2 pen, GraphicsPath2 path)
 {
     throw new System.NotImplementedException();
 }