如何定义圆形渐变(中间——边缘渐变)画笔,类似Photoshop里的画笔工具
解决方案 »
- 自动按Enter键的问题
- 菜鸟用c#做winform程序,窗体上放了好多的textbox控件,用户让我弄成按回车就模拟tab键。。。。
- 关于在两个Form之间传递参数的问题,请各位帮帮忙。
- 一个关于winform NetworkStream发送和接收文件的问题
- C#能否直接保存类的实例?
- Winform窗体设计 实现任何时候在主容器中存在一个子窗体
- 如何将当前日期转换为double类型?
- 求一条SQL语句,将一个字段显示成两列
- 急等!sql server2005 express 默认设置 远程连接出错是怎么回事啊?请有经验的指点下. 我用vx2005
- 如何用C#在Windows Form 上实现邮件群发功能!
- 请问:怎样才很好的学会--自定义控件--和--使用好,类--
- 两个问题,困扰我很久了
只有Photoshop 里的颜色替换工具能达到
GraphicsPath path = new GraphicsPath();
path.AddEllipse(0, 0, 140, 70);// Use the path to construct a brush.
PathGradientBrush pthGrBrush = new PathGradientBrush(path);// Set the color at the center of the path to blue.
pthGrBrush.CenterColor = Color.FromArgb(255, 0, 0, 255);// Set the color along the entire boundary
// of the path to aqua.
Color[] colors = {Color.FromArgb(255, 0, 255, 255)};
pthGrBrush.SurroundColors = colors;e.Graphics.FillEllipse(pthGrBrush, 0, 0, 140, 70);
看一下Programming Microsoft Windows with CSharp第17章