GraphicsPath画直线 想的是画了两条分开的直线,用DrawPath的时候自动把两条线的头尾连起来,能解决吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这样? GraphicsPath _Path = new GraphicsPath(); _Path.AddLine(0, 0, 100, 100); _Path.AddLine(200, 200, 150, 50); Graphics _Graphcis = Graphics.FromHwnd(this.Handle); _Graphcis.DrawPath(new Pen(Brushes.Yellow), _Path); _Graphcis.Dispose(); 要分开啊 那简单多了 GraphicsPath _Path = new GraphicsPath(FillMode.Alternate); _Path.AddLine(0, 0, 100, 100); _Path.CloseFigure(); _Path.AddLine(200, 200, 150, 50); Graphics _Graphcis = Graphics.FromHwnd(this.Handle); _Graphcis.DrawPath(new Pen(Brushes.Yellow), _Path); _Graphcis.Dispose(); 应该是用StartFigure()吧,但是好像要在每次Add后都要加这个方法啊 C#如何读取EXCEL透视表原始数据 C#web开发,如何调用ActiveX控件? 【求教】socket连接问题(当对方拒绝访问时)..我的办法可行么? C#打包程序 需要framework哪个版本?都要装么? 求一sql语句。 关于弹出窗口的问题 C# 2.0 下面有什么讲WinForm高级开发的吗 一句sql查询 公司要招人。 200分求硕士毕业论文题目 this.close()不能用在load事件里怎么办 IE提示组织不安全方式的activex控件。,怎么能允许用该控件呢?
_Path.AddLine(0, 0, 100, 100);
_Path.AddLine(200, 200, 150, 50); Graphics _Graphcis = Graphics.FromHwnd(this.Handle); _Graphcis.DrawPath(new Pen(Brushes.Yellow), _Path);
_Graphcis.Dispose();
_Path.AddLine(0, 0, 100, 100);
_Path.CloseFigure(); _Path.AddLine(200, 200, 150, 50); Graphics _Graphcis = Graphics.FromHwnd(this.Handle);
_Graphcis.DrawPath(new Pen(Brushes.Yellow), _Path);
_Graphcis.Dispose();