Exemplo n.º 1
0
        protected override List <PolyLine> getInsideLines()
        {
            List <PolyLine> polyLines = new List <PolyLine>();

            foreach (System.Windows.Rect r in insideCuts_)
            {
                polyLines.AddRange(PolyLine.convertRectangleToPolyLines(new System.Windows.Rect(r.Location, r.Size), true));
            }

            return(polyLines);
        }
Exemplo n.º 2
0
        protected override List <PolyLine> getInsideLines()
        {
            if (inside_.Width == 0 || inside_.Height == 0)
            {
                return(new List <PolyLine>());
            }
            System.Windows.Point pos = new System.Windows.Point(
                (outside_.Width - inside_.Width) / 2,
                (outside_.Height - inside_.Height) / 2);
            List <PolyLine> l = PolyLine.convertRectangleToPolyLines(new System.Windows.Rect(pos, inside_), true);

            return(l);
        }