private void walk(PathWalker walker, double[] points, int l, bool closed) { walker.beginSubPath(closed); for (int i = 0; i < l; i += 2) { walker.lineTo(points[i], points[i + 1]); } walker.endSubPath(); }
/// <summary> Walks the given walker through this subpath. /// /// </summary> /// <param name="walker">the walker. /// </param> /// <param name="error">the error matrix. /// </param> public virtual void walk(PathWalker walker, System.Drawing.Drawing2D.Matrix errorMatrix, double error) { System.Drawing.PointF position = new System.Drawing.PointF((float)startX, (float)startY); walker.beginSubPath(closed); walker.lineTo(startX, startY); for (int i = 0; i < segments.Length; i++) { //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"' segments[i].walk(walker, ref position, errorMatrix, error); } walker.endSubPath(); }