Intersecting GraphicsPath objects

后端 未结 1 1164
误落风尘
误落风尘 2021-01-22 06:05

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

相关标签:
1条回答
  • 2021-01-22 06:23

    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.

    0 讨论(0)
提交回复
热议问题