Beispiel #1
0
        private void TransformPoints(Glyph fromGlyph, VectorTransform transform)
        {
            if (HoleSorted && !fromGlyph.WasHoleSorted)
            {
                // We must sort all components:
                fromGlyph.HoleSort();
            }

            VectorPoint current = fromGlyph.FirstPathNode;

            while (current != null)
            {
                // Create a new one:
                VectorPoint newPoint = current.Copy();

                // Apply transformed pos:
                newPoint.Transform(transform);

                // Add it:
                AddPathNode(newPoint);

                current = current.Next;

                if (current == null)
                {
                    // Last one - ensure it's closed:
                    newPoint.IsClose = true;
                }
            }
        }
Beispiel #2
0
        private void TransformPoints(Glyph fromGlyph, VectorTransform transform)
        {
            VectorPoint current = fromGlyph.FirstPathNode;

            while (current != null)
            {
                // Create a new one:
                VectorPoint newPoint = current.Copy();

                // Apply transformed pos:
                newPoint.Transform(transform);

                // Add it:
                AddPathNode(newPoint);

                current = current.Next;
            }
        }