相交的GraphicsPath对象 [英] Intersecting GraphicsPath objects

查看:112
本文介绍了相交的GraphicsPath对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何相交两(.NET)的GraphicsPath对象?

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

推荐答案

您试图让两个不同的路径所包围的面积?这是一个区域,而不是一个路径:

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.

这篇关于相交的GraphicsPath对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆