The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....

Using TGradFill

The visual component TGradFill draws a filled color gradient rectangle offering nine different layouts (property FillType). The color range is controlled by the properties ColorFirst and ColorLast, the color resolution is determined by the property NrColors. The property FrameStyle allows to add a bevel-like frame.

A special visual effect can be achieved by setting the the properties GridMode and GridColor.

Finally the engine of the TGradFill component can be used to generate the gradient area in any (invisible) bitmap by using the method DrawGradient.

Last Update: 2023-Dec-15