请问c#中有没有vc里polypolygon功能的函数,实现环形填充 请问c#中有没有vc里polypolygon功能的函数大多边形包含小多边形时,在vc中用polypolygon可以直接填充中间的环形区域,请问c#中有类似功能的函数么? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以构造2个Region,外面的大Region把里面的小Region挖掉就是环形区域了protected override void OnPaint(PaintEventArgs e){ base.OnPaint(e); GraphicsPath path1 = new GraphicsPath(); path1.AddEllipse(0, 0, 100, 100); Region region1 = new Region(path1); GraphicsPath path2 = new GraphicsPath(); path2.AddEllipse(20, 20, 60, 60); Region region2 = new Region(path2); region1.Exclude(region2); e.Graphics.FillRegion(Brushes.Red, region1);} 求教:C# base64binary 解码 成 String 关于catch 请大家帮帮解决一下循环生成静态页面,急!!!!!谢谢 WPF的小白问题 C# 页面跳转 wp7 同步更新数据 access数据库连接错误 C#收取邮件的时候 有部分from乱码 在线等 急!!!为什么可以成功添加DLL文件,却不能在程序中用using引用它呢? 是否可以在窗体中运行另外一个带窗体的CLASS,并对该CLASS发消息? ASP.NET怎么将字符串以原格式保存到MSSL的binary字段当中?百分求教 高手指点:向数据适配器插入一条新记录后为什么会把原来的记录给覆盖掉?而不是添加上一条新的?
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e); GraphicsPath path1 = new GraphicsPath();
path1.AddEllipse(0, 0, 100, 100);
Region region1 = new Region(path1); GraphicsPath path2 = new GraphicsPath();
path2.AddEllipse(20, 20, 60, 60);
Region region2 = new Region(path2); region1.Exclude(region2);
e.Graphics.FillRegion(Brushes.Red, region1);
}