TTeeCanvas.GradientFill
 
 
 

All Units  All Classes  Properties, Methods and Events  

TTeeCanvas.GradientFill
TTeeCanvas

procedure GradientFill(Const Rect: TRect; StartColor, EndColor: TColor; Direction: TGradientDirection; Balance, RadialX, RadialY: Integer); virtual; abstract; overload;

Unit
TeCanvas

Description
The GradientFill method is used to fill a Screen area with multi-colored lines to obtain a nice shadow effect and coloured backgrounds. The Chart.Gradient component uses this method internally.

Example

procedure TForm1.Button1Click(Sender: TObject);
begin
Chart1.Canvas.GradientFill( Canvas, ClientRect, clYellow, clBlue, True);
end;



Send us Help Feedback. Copyright 1995-2013 © by Steema Software. All Rights Reserved.