Example #1
0
        void ApplyTransform(PathF path)
        {
            if (RenderTransform == null)
            {
                return;
            }

            path.Transform(RenderTransform.Value);
        }
        public static PathF AsScaledPath(
            this PathF target,
            float scale)
        {
            var scaledPath = new PathF(target);
            var transform  = AffineTransform.GetScaleInstance(scale, scale);

            scaledPath.Transform(transform);
            return(scaledPath);
        }