C#AddArc函数中的参数问题 这个函数的这两角度的参数怎么设定啊?纠结了很久都不知道怎么算的。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 给个MSDN的参考: 创建一个矩形,要从该矩形定义弧。 创建路径 myPath。 定义一段 180 度的椭圆弧,它扫过从 0 度 180 度并将其追加到路径。 将路径绘制到屏幕。private void AddArcExample(PaintEventArgs e){ // Create a GraphicsPath object. GraphicsPath myPath = new GraphicsPath(); // Set up and call AddArc, and close the figure. Rectangle rect = new Rectangle(20, 20, 50, 100); myPath.StartFigure(); myPath.AddArc(rect, 0, 180); myPath.CloseFigure(); // Draw the path to screen. e.Graphics.DrawPath(new Pen(Color.Red, 3), myPath);} oracle给xmltype字段添加数据 如果我复制一个文件到另一个目录中,这个过程会在windows的哪个文件中或哪个地方记录下来 关于 Queue 的一个问题,敬请指教! 求vs2005的扩展包,我想用linq啊 e.KeyCode == Keys.Enter如何排除弹出的消息框 C# listbox 问题 最头疼问题!!!高手速进 如何将datagrid中某一列的数据源设为数组? 关于string与byte转换的问题 怎么在webBrowser获取textBox循环输入 HTML的TABLE转DATATABLE,请帮忙看看 devexpress 问题请教
创建一个矩形,要从该矩形定义弧。
创建路径 myPath。
定义一段 180 度的椭圆弧,它扫过从 0 度 180 度并将其追加到路径。
将路径绘制到屏幕。
private void AddArcExample(PaintEventArgs e)
{ // Create a GraphicsPath object.
GraphicsPath myPath = new GraphicsPath(); // Set up and call AddArc, and close the figure.
Rectangle rect = new Rectangle(20, 20, 50, 100);
myPath.StartFigure();
myPath.AddArc(rect, 0, 180);
myPath.CloseFigure(); // Draw the path to screen.
e.Graphics.DrawPath(new Pen(Color.Red, 3), myPath);
}