Unicode Controls & Classes for VB6 - Version 4

clsGpBrush.GetBlend Function

The GetBlend method gets the blend factors and their corresponding blend positions from a LinearGradientBrush object.

Syntax
Public Function GetBlend (ByRef aFactors As Single(), _
ByRef APos As Single()) As GpStatus
Parameters
Parameter Description
ByRef aFactors As Single() (OUT) Pointer to an array that receives the blend factors. Each number in the array indicates a percentage of the ending color and is in the range from 0.0 through 1.0.
ByRef APos As Single() (OUT) Pointer to an array that receives the blend positions. Each number in the array indicates 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. A blend position between 0.0 and 1.0 indicates a 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