Intersecting GraphicsPath objects

情到浓时终转凉″ 提交于 2019-12-02 06:29:08

问题


How can I intersect two (.NET) GraphicsPath objects?


回答1:


Are you trying to get the area enclosed by two different paths? That is a Region, not a path:

var rgn1 = new Region(path1);
var intersection = rgn1.Intersect(path2);
rgn1.Dispose();

If that is not what you mean, you will have to provide more information.



来源:https://stackoverflow.com/questions/503376/intersecting-graphicspath-objects

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