using System.Drawing.Drawing2D; namespace Svg { /// /// Represents an element that is using a GraphicsPath as rendering base. /// public abstract class SvgPathBasedElement : SvgVisualElement { public override System.Drawing.RectangleF Bounds { get { var path = this.Path(null); if (Transforms != null) { path = (GraphicsPath)path.Clone(); path.Transform(Transforms.GetMatrix()); } return path.GetBounds(); } } } }