ChartDirector 6.2 (.NET Edition)

BaseChart.gradientColor2


Usage

[C#] public int gradientColor2(int[] colorArray [, double angle [, double scale [, int startX, int startY ]]]);
[VB] Public Function gradientColor2(colorArray As Integer() [, angle As Double [, scale As Double [, startX As Integer, startY As Integer ]]]) As Integer

Description

Creates a multi-point linear gradient color.

This method is for backward compatibility. Use BaseChart.linearGradientColor2 instead.

Arguments

ArgumentDefaultDescription
colorArray(Mandatory)An array defining the positions and colors of the pixels along the reference gradient line segment.
angle90The direction of the reference gradient line segment in degrees, measured clockwise, with 0 degree as the upward pointing direction. The default direction is horizontal from left to right (90 degrees).
scale1.0The scaling factor for the reference gradient line segment. By default, the reference gradient line segment is 256 pixels in length. The scaling factor can be use to stretch or compress the gradient line segment.
startX0The x coordinate of the starting point of the reference gradient line segment.
startY0The y coordinate of the starting point of the reference gradient line segment.

Return Value

A 32-bit integer representing the linear gradient color.