How can I intersect two (.NET) GraphicsPath objects?
Asked
Active
Viewed 2,545 times
1 Answers
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
-
Already tried that. Unfortunately when I try to fill that rectangle I get some strange visual glitches. Anyway, thank you for your answer. – Yordan Pavlov Feb 03 '09 at 07:16
-
What are you "filling"? And Regions are not rectangles. Please show the source code. – Dour High Arch Feb 03 '09 at 18:07
-
1Regions don't support Antialiasing - that is what you might see. – Patrick Klug Feb 11 '09 at 10:02