ChartDirector 7.1 (.NET Edition)

DrawArea.gradientColor


Usage

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

Description

Creates a two-point linear gradient color.

This method is for backward compatibility. Use DrawArea.linearGradientColor instead.

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.

Return Value

A 32-bit integer representing the linear gradient color.