Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
822 views
in Technique[技术] by (71.8m points)

.net - Intersecting GraphicsPath objects

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...