ChartDirector 7.1 (.NET Edition)

BaseChart.linearGradientColor


Usage

[C#]public int linearGradientColor(int startX, int startY, int endX, int endY, int startColor, int endColor [, bool periodic ]);
[VB]Public Function linearGradientColor(startX As Integer, startY As Integer, endX As Integer, endY As Integer, startColor As Integer, endColor As Integer [, periodic As Boolean ]) As Integer

Description

Creates a two-point linear gradient color.

Arguments

ArgumentDefaultDescription
startX(Mandatory)The x coordinate of the starting point of the reference gradient line segment.
startY(Mandatory)The y coordinate of the starting point of the reference gradient line segment.
endX(Mandatory)The x coordinate of the ending point of the reference gradient line segment.
endY(Mandatory)The y coordinate of the ending point of the reference gradient line segment.
startColor(Mandatory)The color at the starting point of the reference gradient line segment.
endColor(Mandatory)The color at the ending point of the reference gradient line segment.
periodicfalseSpecifies whether the gradient will repeat itself periodically. If the gradient does not repeat itself, the points that lie beyond the end points of the gradient line segment will assume the colors of the end points.

Return Value

A 32-bit integer representing the linear gradient color.