Read regiondata as rectangles

拈花ヽ惹草 提交于 2019-12-25 02:28:47

问题


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:


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());


来源:https://stackoverflow.com/questions/16882292/read-regiondata-as-rectangles

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!