Graphics填充一圆 怎么使这个圆模糊 有点朦胧感!

hhfh 2009-07-10 10:17:05
private void pictureBox1_Paint(object sender, PaintEventArgs e)
{

// Create rectangle.
RectangleF rect = new Rectangle(0, 0, pictureBox1.Width, pictureBox1.Height);

// Fill rectangle to screen.
//e.Graphics.FillRectangle(blueBrush, rect);

e.Graphics.FillEllipse(blueBrush, rect);

}
...全文
86 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
hhfh 2009-07-10
  • 打赏
  • 举报
回复

要这种效果
libolei 2009-07-10
  • 打赏
  • 举报
回复
e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
啊对 蹭分
zgke 2009-07-10
  • 打赏
  • 举报
回复
不是很明白你要的效果..

e.Graphics.SmoothingMode = SmoothingMode.HighQuality;

这样看看..

zgke 2009-07-10
  • 打赏
  • 举报
回复
projectBox1.Visible = false; 删除..没意思..我控件...档屏幕了 删除了就可以了.
zgke 2009-07-10
  • 打赏
  • 举报
回复
这个简单

System.Drawing.Drawing2D.GraphicsPath _Path = new GraphicsPath();
_Path.AddEllipse(0, 0, 100, 100);

System.Drawing.Drawing2D.PathGradientBrush _PahtBrush = new PathGradientBrush(_Path);

_PahtBrush.CenterColor = Color.FromArgb(255, 255, 255, 0);

_PahtBrush.SurroundColors = new Color[] { Color.FromArgb(0, 255, 255, 0) };


projectBox1.Visible = false;

Graphics _Graphics = Graphics.FromHwnd(this.Handle);

_Graphics.FillPath(_PahtBrush, _Path);

中间是 你自己绘制把..
hhfh 2009-07-10
  • 打赏
  • 举报
回复


再贴
zgke 2009-07-10
  • 打赏
  • 举报
回复
看不到图啊
hhfh 2009-07-10
  • 打赏
  • 举报
回复
ding

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧