Esempio n. 1
0
    public Rect GetBound()
    {
        for (int i = 0; i < listObject.Count; ++i)
        {
            ISVGPathSegment seg = listObject[i];
            seg.ExpandBounds(this);
        }

        Rect tmp = new Rect(boundUL.x - 1, boundUL.y - 1, boundBR.x - boundUL.x + 2, boundBR.y - boundUL.y + 2);

        return(tmp);
    }
Esempio n. 2
0
    public Rect GetBound()
    {
//Profiler.BeginSample("SVGGraphicsPath.GetBound");
        for (int i = 0; i < listObject.Count; i++)
        {
            ISVGPathSegment seg = (ISVGPathSegment)listObject[i];
            seg.ExpandBounds(this);
        }

        Rect tmp = new Rect(boundUL.x - 1, boundUL.y - 1, boundBR.x - boundUL.x + 2, boundBR.y - boundUL.y + 2);

//Profiler.EndSample();
        return(tmp);
    }