Exemple #1
0
        /// <summary>Closes the current subpath.</summary>
        public virtual void CloseSubpath()
        {
            Subpath lastSubpath = GetLastSubpath();

            lastSubpath.SetClosed(true);
            Point startPoint = lastSubpath.GetStartPoint();

            MoveTo((float)startPoint.GetX(), (float)startPoint.GetY());
        }
        private static Subpath TransformSubpath(Subpath subpath, Matrix ctm)
        {
            Subpath newSubpath = new Subpath();

            newSubpath.SetClosed(subpath.IsClosed());
            foreach (IShape segment in subpath.GetSegments())
            {
                IShape transformedSegment = TransformSegment(segment, ctm);
                newSubpath.AddSegment(transformedSegment);
            }
            return(newSubpath);
        }