0
我在讀this article of codeproject。文字效果GDI +
我想用gdi或gdi +實現相同的霧化文字效果。我不是concered關於滾動和這篇文章的其他功能,只需在應用霧效果的文本字符串
// Draws fog effect with help of gradient brush with alpha colors.
using (Brush br = new LinearGradientBrush(new Point(0, 0), new Point(0, this.Height),
Color.FromArgb(255, this.BackColor), Color.FromArgb(0, this.BackColor)))
{
e.Graphics.FillRectangle(br, this.ClientRectangle);
}