LineGradient(TCanvas,TCanvasRect,TCanvasColor[],Integer,TGradientOrientation,Single) Method |
Scroll Prev Top Next More |
Paints a rectangular portion of the canvas with a linear gradient specified by the colors array, either up-down or left-right.
Tip |
---|
LineGradient looks like a progress bar and can be used as such. |
Namespace: FMX.RS.Graphics
Delphi |
procedure LineGradient(const Canvas: TCanvas; const ARect: TCanvasRect; |
Parameters
Canvas
Type: TCanvas
Canvas to paint on
ARect
Type: System.Void
Rectangle portion of the canvas to fill with the gradient
Colors
Type: array of TCanvasColor
Colors of the gradient
LineSize
Type: Integer
Step (or coarseness) of the gradient
Orientation
Type: TGradientOrientation
Orientation of the linear gradient
Opacity
Type: Single
Transparency of the gradient (FMX Only)