Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        static GeneralPathTest()
        {
            IRenderingElement element = new GeneralPath(new WPF.Media.PathGeometry(), WPF.Media.Colors.Black);

            SetRenderingElement(element);
        }