C#绘制渐变背景

            //绘制渐变色背景
            Graphics g = e.Graphics;
            LinearGradientBrush linearGradientBrush = new LinearGradientBrush(this.ClientRectangle, Color.White, Color.Blue, LinearGradientMode.Vertical);
            g.FillRectangle(linearGradientBrush, this.ClientRectangle);

 

posted @ 2013-10-17 11:17  Micmacs  阅读(866)  评论(0编辑  收藏  举报