2

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

Kris Erickson
  • 32,972
  • 26
  • 117
  • 173
Yordan Pavlov
  • 5,028
  • 4
  • 23
  • 15

1 Answers1

2

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.

Dour High Arch
  • 21,081
  • 29
  • 74
  • 89