五角星的问题 http://zhidao.baidu.com/question/95358857.html 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 protected override void OnPaint(PaintEventArgs args) { Graphics grfx = args.Grphics; \\ 这句什么意思啊??????int cx = 300; int cy = 160; Point[] apt = new Point[5]; for (int i = 0; i< apt.Length; i++) { double dAngle = (i * 0.8 - 0.5) * Math.PI; apt[i] = new Point((int)(cx * (0.25 + 0.24 * Math.Cos(dAgngle))),(int)(cy * (0.5 + 0.48 * Math.Sin(dAngle)))); } grfx.FillPolygon(new SolidBrush(Color.Red), apt, FillMode.Winding); } 1 System.Windows.Froms.PaintEventArgs并不包含“Grphics”的定义2 当前上下文中不存在名称“dAgngle”3 当前上下文中不存在名称"FillMode" 就是圆等分和sin、cos算坐标,五角星本来就是规则图么,很久以前我还做个一个在地上滚来滚去跳来跳去的五角星,研究半天最后左标x和y2分别一个个数学公式就算出来了,数学的确很好用,缺点就是让我现在在写一遍的话估计又要琢磨半天 一段时间内重复登陆限制 求C#简单聊天程序源码 咨询C#电子教材 请教C#命令按钮一个可用的同时另一个不可用。 谢谢!请教函数调用的问题: 用户控件 System.Windows.Forms.PictureBox 未标记为可序列化 工具条上的一个checkbox 获取摄像头设备! 用代码实现还原数据库,该数据库处于脱机状态,请高手请教。 可以在C#中使用VB的函数吗?(如:isnull、isempty、isnothing) 跪求并口转I2C的c#代码! sqlserver2005 大批量插入数据
{
Graphics grfx = args.Grphics; \\ 这句什么意思啊??????int cx = 300;
int cy = 160; Point[] apt = new Point[5];
for (int i = 0; i< apt.Length; i++)
{
double dAngle = (i * 0.8 - 0.5) * Math.PI;
apt[i] = new Point((int)(cx * (0.25 + 0.24 * Math.Cos(dAgngle))),(int)(cy * (0.5 + 0.48 * Math.Sin(dAngle))));
} grfx.FillPolygon(new SolidBrush(Color.Red),
apt,
FillMode.Winding);
} 1 System.Windows.Froms.PaintEventArgs并不包含“Grphics”的定义2 当前上下文中不存在名称“dAgngle”3 当前上下文中不存在名称"FillMode"