Unicode Controls & Classes for VB6 - Version 4

clsGpBrush.SetInterpolationColors Function

Permits you to create a linear brush with more colors

Syntax
Public Function SetInterpolationColors (ByRef aColors As Long(), _
ByRef APos As Single()) As GpStatus
Parameters
Parameter Description
ByRef aColors As Long() Array of colors in ARGB format
ByRef APos As Single() Pointer to an array of real numbers that specify the blend positions. Each number in the array specifies a percentage of the distance between the starting boundary and the ending boundary and is in the range from 0.0 through 1.0, where 0.0 indicates the starting boundary of the gradient and 1.0 indicates the ending boundary. There must be at least two positions specified: the first position, which is always 0.0f, and the last position, which is always 1.0f. Otherwise, the behavior is undefined. A blend position between 0.0 and 1.0 indicates the line, parallel to the boundary lines, that is a certain fraction of the distance from the starting boundary to the ending boundary. For example, a blend position of 0.7 indicates the line that is 70 percent of the distance from the starting boundary to the ending boundary. The color is constant on lines that are parallel to the boundary lines.
Remarks