Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSVclCommon > RSVclGraphics > Routines

DirectionGradient(TCanvas,TRect,TCanvasColor[],TGradientDirection,Integer) Method

Scroll Prev Top Next More

Paints a rectangular portion of the canvas with a linear gradient specified by the colors array

noteNote

LineSize and Colors more than 2 are ignored for diagonal gradients

Namespace: RSVclGraphics

Parameters

Canvas

Type: TCanvas

Canvas to paint on

CanvasRect

Type: TRect

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
 

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb