Ejemplo n.º 1
0
        public RectangleF GetPathBoundsWhenRotated(PointF centerOfRotation, PathF path, float angle)
        {
            var nativePath = path.AsRotatedCGPath(centerOfRotation, 1, 1f, angle);
            var bounds     = nativePath.PathBoundingBox;

            nativePath.Dispose();
            return(bounds.AsRectangleF());
        }