public DC.Rect[] GetBoundingRectangles() { var rects = provider.GetBoundingRectangles(); List <DC.Rect> ret = new List <DC.Rect> (rects.Length); foreach (var rect in rects) { ret.Add(new DC.Rect(rect)); } return(ret.ToArray()); }