ChartDirector Ver 3.0 (C++ Edition)

DrawArea.gradientColor


Usage

int gradientColor(int startX, int startY, int endX, int endY, int startColor, int endColor);

Description

Create a two-point gradient color.

Arguments

ArgumentDefaultDescription
startX(Mandatory)The x coordinate of the starting point of the gradient line segment.
startY(Mandatory)The y coordinate of the starting point of the gradient line segment.
endX(Mandatory)The x coordinate of the ending point of the gradient line segment.
endY(Mandatory)The y coordinate of the ending point of the gradient line segment.
startColor(Mandatory)The starting color.
endColor(Mandatory)The ending color.

Return Value

Return a 32-bit integer acting as a handle to the gradient color. The handle can be used in any ChartDirector API that expects a color as an argument.