BCGControlBar Library for .NET
Fill4ColorsGradient Method




Specifies a rectangular area to fill.

Specifies the start color of the first gradient.
Specifies the end color of the first gradient.
Specifies the start color of the second gradient.
Specifies the end color of the second gradient.

TRUE - horizontal gradient, FALSE - vertical gradient.

Specifies the percent of the first gradient.
Call this function to fill a rectangular area with the gradient which contains four colors.
Syntax
'Declaration
 
Public Sub Fill4ColorsGradient( _
   ByVal rect As Rectangle, _
   ByVal colorStart1 As Color, _
   ByVal colorFinish1 As Color, _
   ByVal colorStart2 As Color, _
   ByVal colorFinish2 As Color, _
   ByVal horz As Boolean, _
   ByVal percentage As Integer _
) 
'Usage
 
Dim instance As DrawManager
Dim rect As Rectangle
Dim colorStart1 As Color
Dim colorFinish1 As Color
Dim colorStart2 As Color
Dim colorFinish2 As Color
Dim horz As Boolean
Dim percentage As Integer
 
instance.Fill4ColorsGradient(rect, colorStart1, colorFinish1, colorStart2, colorFinish2, horz, percentage)
public void Fill4ColorsGradient( 
   Rectangle rect,
   Color colorStart1,
   Color colorFinish1,
   Color colorStart2,
   Color colorFinish2,
   bool horz,
   int percentage
)
public: void Fill4ColorsGradient( 
   Rectangle rect,
   Color colorStart1,
   Color colorFinish1,
   Color colorStart2,
   Color colorFinish2,
   bool horz,
   int percentage
) 
public:
void Fill4ColorsGradient( 
   Rectangle rect,
   Color colorStart1,
   Color colorFinish1,
   Color colorStart2,
   Color colorFinish2,
   bool horz,
   int percentage
) 

Parameters

rect

Specifies a rectangular area to fill.

colorStart1
Specifies the start color of the first gradient.
colorFinish1
Specifies the end color of the first gradient.
colorStart2
Specifies the start color of the second gradient.
colorFinish2
Specifies the end color of the second gradient.
horz

TRUE - horizontal gradient, FALSE - vertical gradient.

percentage
Specifies the percent of the first 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

Send Feedback