DirectionGradient(TCanvas,TCanvasRect,TCanvasColor[],TGradientDirection,Integer,Single) Method |
Scroll Prev Top Next More |
Paints a rectangular portion of the canvas with a linear gradient specified by the colors array
Namespace: RSGraphics
Delphi |
procedure DirectionGradient( const Canvas: TCanvas; const CanvasRect: TCanvasRect; |
Parameters
Canvas
Type: TCanvas
Canvas to paint on
CanvasRect
Type: System.Void
Rectangle portion of the canvas to fill with the gradient
Colors
Type: array of TCanvasColor
Colors of the gradient
Direction
Type: TGradientDirection
Direction of the gradient
LineSize
Type: Integer
Step (or coarseness) of the gradient
Opacity
Type: Single
Transparency of the gradient (FMX only)