2

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

Kris Erickson
  • 33,454
  • 26
  • 120
  • 175
Yordan Pavlov
  • 5,126
  • 4
  • 25
  • 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,513
  • 29
  • 75
  • 90