BCGControlBar Library for .NET
FillGradient2 Method




Specifies the bounding rectangle of the area to fill.

The color to start with.

The color to finish with.

The gradient direction.

Call this member function to fill a rectangular area with the gradient color in the direction specified by nAngel.  The nAngel value should be in the interval [0 - 360].
Syntax
'Declaration
 
Public Sub FillGradient2( _
   ByVal rect As Rectangle, _
   ByVal colorStart As Color, _
   ByVal colorFinish As Color, _
   ByVal nAngle As Single _
) 
'Usage
 
Dim instance As DrawManager
Dim rect As Rectangle
Dim colorStart As Color
Dim colorFinish As Color
Dim nAngle As Single
 
instance.FillGradient2(rect, colorStart, colorFinish, nAngle)
public void FillGradient2( 
   Rectangle rect,
   Color colorStart,
   Color colorFinish,
   float nAngle
)
public: void FillGradient2( 
   Rectangle rect,
   Color colorStart,
   Color colorFinish,
   float nAngle
) 
public:
void FillGradient2( 
   Rectangle rect,
   Color colorStart,
   Color colorFinish,
   float nAngle
) 

Parameters

rect

Specifies the bounding rectangle of the area to fill.

colorStart

The color to start with.

colorFinish

The color to finish with.

nAngle

The gradient direction.

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

Send Feedback