Пример #1
0
 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();
 }
Пример #2
0
        /// <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();
        }
Пример #3
0
        /// <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();
        }
Пример #4
0
 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();
 }