/// <summary> /// Add the provided general path to the bounding box. /// </summary> /// <param name="path">general path</param> private void Add(GeneralPath path) { var b = path.Elements.Bounds; if (b.IsEmpty) { return; } Add(b.BottomLeft); Add(b.BottomRight); Add(b.TopLeft); Add(b.TopRight); }
static GeneralPathTest() { IRenderingElement element = new GeneralPath(new WPF.Media.PathGeometry(), WPF.Media.Colors.Black); SetRenderingElement(element); }