Contents  All Classes  Index A-Z  All Units


TTeeCanvas.GradientFill
TTeeCanvas

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

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;


Submit your feedback about this page.

Copyright 1995-2007 © by Steema Software. All Rights Reserved.