RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
GraphUtil.GradientFillCanvas Function

Fills a TCanvas with a gradient.

Pascal
procedure GradientFillCanvas(const ACanvas: TCanvas; const AStartColor: TColor; const AEndColor: TColor; const ARect: TRect; const Direction: TGradientDirection);
C++
GradientFillCanvas(const TCanvas ACanvas, const TColor AStartColor, const TColor AEndColor, const TRect ARect, const TGradientDirection Direction);

GradientFillCanvas fills a TCanvas with a gradient described by a direction and the start and end colors.  

ACanvas represents the TCanvas used for drawing.  

AStartColor represents the start color for the gradient.  

AEndColor represents the end color for the gradient.  

ARect represents the rectangle into which the gradient is drawn.  

Direction represents the direction of the gradient. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!