请问,c# 有没有从中心点向周围填充的圆形画刷 请问,c# 有没有从中心点向周围填充的圆形画刷 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看看这个http://bbs.csdn.net/topics/190060746或者按照“径向渐变填充”Google下 C#没简单点的?比如,直接创建一个圆形画刷,然后fill就可以了 WPF的RadialGradientBrush可以http://technet.microsoft.com/zh-cn/library/aa970904%28v=vs.100%29?cs-save-lang=1&cs-lang=csharp#code-snippet-5 Paint Event: Graphics g = e.Graphics; using (GraphicsPath path = new GraphicsPath()) { path.AddEllipse(50, 50, 100, 100); //渐变填充GraphicsPath对象 using (PathGradientBrush brush = new PathGradientBrush(path)) { g.SmoothingMode = SmoothingMode.HighQuality; //渐变中心点颜色 brush.CenterColor = Color.White; //渐变中心点位置 brush.CenterPoint = new PointF(100f, 100f); brush.SurroundColors = new Color[] { Color.Black }; g.FillPath(brush, path); } } sql行转列问题~~~~~~~~~~~~~!!!!!!!! 如何通过Winform窗体向XML中写入数据? 求助!! 如何实现颜色渐变图形 插入到数据库! c # 票据打印机高级开发包 简单的回传问题 求一条SQL语句的优化语句!急急急!!! 我们为什么不开发一个这样的程序,能把机器码(*.exe文件)翻译成高级语言代码?? 一个关于listbox1移动到<->listbox2的问题 关于数据显示的问题,急急急! rdlc报表如何使用chart控件 C#代码总是崩溃
http://bbs.csdn.net/topics/190060746或者按照“径向渐变填充”Google下
Paint Event: Graphics g = e.Graphics;
using (GraphicsPath path = new GraphicsPath())
{
path.AddEllipse(50, 50, 100, 100);
//渐变填充GraphicsPath对象
using (PathGradientBrush brush = new PathGradientBrush(path))
{
g.SmoothingMode = SmoothingMode.HighQuality;
//渐变中心点颜色
brush.CenterColor = Color.White;
//渐变中心点位置
brush.CenterPoint = new PointF(100f, 100f);
brush.SurroundColors = new Color[] { Color.Black };
g.FillPath(brush, path);
}
}