예제 #1
0
        public static UIBezierPath AsUIBezierPath(this PathF target)
        {
            if (target == null)
            {
                return(null);
            }

            return(UIBezierPath.FromPath(target.AsCGPath()));
        }
예제 #2
0
        public RectangleF GetPathBounds(PathF path)
        {
            var nativePath = path.NativePath as CGPath;

            if (nativePath == null)
            {
                nativePath      = path.AsCGPath();
                path.NativePath = nativePath;
            }

            var bounds = nativePath.PathBoundingBox;

            return(bounds.AsRectangleF());
        }