意
下面绘制一个五星,五星旋转一周,颜色随机C#程序protectedoverridevoidOnPaint(PaintEventArgse){Graphicsgra=e.Graphics;Randomran=newRandom();SolidBrushbru=newSolidBrush(Color.DarkMagenta);int[]x1=;int[]y1=;GraphicsPathstar=newGraphicsPath();gra.TranslateTransform(150,150);for(inti=1;i<=8;i+=2)star.AddLine(x1[i],y1[i],x1[i+1],y1[i+1]);star.CloseFigure();for(inti=1;i<=18;i++){gra.RotateTransform(20);bru.Color=Color.FromArgb(ran.Next(200,255),ran.Next(255),ran.Next(255),ran.Next(255));gra.FillPath(bru,star);}}这是一个GDI+的实例。另外,团IDC网上有许多产品团购,便宜有口碑