返回首页

我怎么能画一个圆在C#Windows窗体(一半彩色一半不是)
我知道怎么画一圈,但我不能颜色
我希望你明白我的
这我如何绘制圆

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

 

namespace WindowsApplication1

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }

 

        private void Form1_Paint(object sender, PaintEventArgs e)

        {

            e.Graphics.DrawEllipse(Pens.Red, 50, 50, 100, 100);

        }

    }

}
是正确与否 :rawa1990 | | BobJanova:如果你想让它一半"彩色"(你的意思是充满右)和半不,它不是一个圆圈。这两个圆弧。使用]和FillPie。

(编辑:是谁的主意它来调用Fill和画件不同的事情...)

回答

评论会员: 时间:2