首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

WinForm,GDI,可否根据Region计算出GraphicsPath?类似描边的功能

2012-06-20 
WinForm,GDI,能否根据Region计算出GraphicsPath?类似描边的功能。RT,根据一个区域,Region,计算能表示该区域

WinForm,GDI,能否根据Region计算出GraphicsPath?类似描边的功能。
RT,
根据一个区域,Region,计算能表示该区域的GraphicsPath。可否?或者有否第三方的方法?
算法如何?

[解决办法]
Region的构造函数第四个不就是GraphicsPath做参数么
Region region = new Region(new System.Drawing.Drawing2D.GraphicsPath());
[解决办法]
获取Region每个边缘点,然后将获取到的边缘点生成一个GraphicPath,将此Graphicpath放大相应倍数.

热点排行