












LinearGradientBrush brush = new LinearGradientBrush(this.ClientRectangle,
Color.FromKnownColor(KnownColor.Control),Color.FromKnownColor(KnownColor.ControlDark) , LinearGradientMode.Horizontal);
System.Drawing.SolidBrush b = new SolidBrush(Color.Red);
Graphics g = this.CreateGraphics();
g.FillRectangle(brush, this.ClientRectangle);
g.DrawString("渐变了啊", this.Font, b, 5, 2);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。