Read regiondata as rectangles

2019-09-17 02:03发布

I have a Region, from which I am subtracting n number of Rectangles, now I need to get all the remaining space in terms of rectangles. Is there a way of doing it?

Thanks

1条回答
beautiful°
2楼-- · 2019-09-17 02:38

First you should realize that any set of rectangles you get may be an approximation if the region contains any curves.

Second, try calling GetRegionScans with an indentity matrix.

RectangleF[] rects = region.GetRegionScans(new Matrix());
查看更多
登录 后发表回答