BCGControlBar Library for .NET
DrawShadow Method




Specifies the rectangular area to draw the shadow under.

Specifies the shadow's width and height.

Specifies the minimum brightness value for the shadow.

Specifies the maximum brightness value for the shadow.

Specifies the (base) color of the shadow.

Call this function to display the shadow for a rectangular screen element. The shadow has the right and bottom images.
Syntax
'Declaration
 
Public Function DrawShadow( _
   ByVal rect As Rectangle, _
   ByVal nDepth As Integer, _
   ByVal iMinBrightness As Integer, _
   ByVal iMaxBrightness As Integer, _
   ByVal colorBase As Color _
) As Boolean
'Usage
 
Dim instance As DrawManager
Dim rect As Rectangle
Dim nDepth As Integer
Dim iMinBrightness As Integer
Dim iMaxBrightness As Integer
Dim colorBase As Color
Dim value As Boolean
 
value = instance.DrawShadow(rect, nDepth, iMinBrightness, iMaxBrightness, colorBase)
public bool DrawShadow( 
   Rectangle rect,
   int nDepth,
   int iMinBrightness,
   int iMaxBrightness,
   Color colorBase
)
public: bool DrawShadow( 
   Rectangle rect,
   int nDepth,
   int iMinBrightness,
   int iMaxBrightness,
   Color colorBase
) 
public:
bool DrawShadow( 
   Rectangle rect,
   int nDepth,
   int iMinBrightness,
   int iMaxBrightness,
   Color colorBase
) 

Parameters

rect

Specifies the rectangular area to draw the shadow under.

nDepth

Specifies the shadow's width and height.

iMinBrightness

Specifies the minimum brightness value for the shadow.

iMaxBrightness

Specifies the maximum brightness value for the shadow.

colorBase

Specifies the (base) color of the shadow.

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