Returns the gradient color from a gradient position.
Visual Basic (Declaration) | |
---|---|
Public Shared Function GetGradientColor( _ ByVal beginColor As Color, _ ByVal endColor As Color, _ ByVal dPosition As Double _ ) As Color |
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- beginColor
- The color from the gradient beginning.
The color from the gradient begining. - endColor
- The color from the gradient end.
The color from the gradient end. - dPosition
- Relative position between the beginning color and end colors. Ranges from 0 - 1.
Relative position between Begin color and End color. The double number between 0 - 1.
Return Value
Result color.Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family