BCGControlBar Library for .NET
FillGradient(Rectangle,Color,Color,Boolean) Method




Specifies a rectangular area to fill.

Specifies the color to start.

Specifies the color to finish.

TRUE - horizontal gradient, FALSE - vertical gradient.

Call this function to fill a rectangular area with the gradient color.
Syntax
'Declaration
 
Public Overloads Sub FillGradient( _
   ByVal rect As Rectangle, _
   ByVal colorStart As Color, _
   ByVal colorFinish As Color, _
   ByVal bHorz As Boolean _
) 
'Usage
 
Dim instance As DrawManager
Dim rect As Rectangle
Dim colorStart As Color
Dim colorFinish As Color
Dim bHorz As Boolean
 
instance.FillGradient(rect, colorStart, colorFinish, bHorz)
public void FillGradient( 
   Rectangle rect,
   Color colorStart,
   Color colorFinish,
   bool bHorz
)
public: void FillGradient( 
   Rectangle rect,
   Color colorStart,
   Color colorFinish,
   bool bHorz
) 
public:
void FillGradient( 
   Rectangle rect,
   Color colorStart,
   Color colorFinish,
   bool bHorz
) 

Parameters

rect

Specifies a rectangular area to fill.

colorStart

Specifies the color to start.

colorFinish

Specifies the color to finish.

bHorz

TRUE - horizontal gradient, FALSE - vertical gradient.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DrawManager Class
DrawManager Members
Overload List

Send Feedback