how to Paint a Gradient in Dephi?

Giganews Newsgroups
Subject: how to Paint a Gradient in Dephi?
Posted by:  Kent (howfoong…@yahoo.com)
Date: Wed, 7 Nov 2007

Hi, how to Paint a Gradient in Dephi?
if Canvas.Brush.Color:= clBlue , just 1 color only..~!
in VB.Net is
bgBrush = New Drawing2D.LinearGradientBrush(ClientRectangle,
Utils.HEXCOL2RGB("#000000"),
Utils.HEXCOL2RGB("#333333"),Drawing2D.LinearGradientMode.Vertical)

Thanks~!

Replies