BCGControlBar Library for .NET
DrawGradientRing Method




Specifies a rectangular area to fill.

Specifies the color to start.

Specifies the color to finish.

Specifies the border color.

Specifies the angle to start from. This value should be within 0-360 interval.

Specifies the width of the rings' border.

Specifies the color of the rings' interior.

Call this function to display a ring filled by the gradient color. The width and height of the specified rectangle must be greater than 4 pixels.
Syntax
'Declaration
 
Public Function DrawGradientRing( _
   ByVal rect As Rectangle, _
   ByVal colorStart As Color, _
   ByVal colorFinish As Color, _
   ByVal colorBorder As Color, _
   ByVal nAngle As Integer, _
   ByVal nWidth As Integer, _
   ByVal clrFace As Color _
) As Boolean
'Usage
 
Dim instance As DrawManager
Dim rect As Rectangle
Dim colorStart As Color
Dim colorFinish As Color
Dim colorBorder As Color
Dim nAngle As Integer
Dim nWidth As Integer
Dim clrFace As Color
Dim value As Boolean
 
value = instance.DrawGradientRing(rect, colorStart, colorFinish, colorBorder, nAngle, nWidth, clrFace)
public bool DrawGradientRing( 
   Rectangle rect,
   Color colorStart,
   Color colorFinish,
   Color colorBorder,
   int nAngle,
   int nWidth,
   Color clrFace
)
public: bool DrawGradientRing( 
   Rectangle rect,
   Color colorStart,
   Color colorFinish,
   Color colorBorder,
   int nAngle,
   int nWidth,
   Color clrFace
) 
public:
bool DrawGradientRing( 
   Rectangle rect,
   Color colorStart,
   Color colorFinish,
   Color colorBorder,
   int nAngle,
   int nWidth,
   Color clrFace
) 

Parameters

rect

Specifies a rectangular area to fill.

colorStart

Specifies the color to start.

colorFinish

Specifies the color to finish.

colorBorder

Specifies the border color.

nAngle

Specifies the angle to start from. This value should be within 0-360 interval.

nWidth

Specifies the width of the rings' border.

clrFace

Specifies the color of the rings' interior.

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