Advertisement
joapaspe

Strokes from the scratch

May 11th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1.         public static void addStroke(IEnumerable<System.Drawing.Point> pointList, Ink myInk) {
  2.            
  3.             System.Drawing.Point[] points = new System.Drawing.Point[pointList.Count()];
  4.            
  5.             int p = 0;
  6.             foreach(System.Drawing.Point point in pointList){
  7.                 points[p] = point;
  8.                 p++;
  9.             }
  10.            
  11.             Stroke newStroke = myInk.CreateStroke(points);
  12.            
  13.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement