BCGControlBar Library for .NET
PrepareShadowBitmap Method




Specifies a graphic to prepare bitmap.

Specifies the shadow width and height.

Specifies the boundaries of the area to draw a shadow.

TRUE - horizontal orientation of the shadow, FALSE - vertical orientation.

Specifies the minimum brightness value for the shadow.

Specifies the maximum brightness value for the shadow.

Specifies the (base) color of the shadow.

Creates a bitmap to draw a shadow.
Syntax
'Declaration
 
Public Shared Function PrepareShadowBitmap( _
   ByVal grph As Graphics, _
   ByVal nDepth As Integer, _
   ByVal rect As Rectangle, _
   ByVal horz As Boolean, _
   ByVal iMinBrightness As Integer, _
   ByVal iMaxBrightness As Integer, _
   ByVal colorBase As Color _
) As Bitmap
'Usage
 
Dim grph As Graphics
Dim nDepth As Integer
Dim rect As Rectangle
Dim horz As Boolean
Dim iMinBrightness As Integer
Dim iMaxBrightness As Integer
Dim colorBase As Color
Dim value As Bitmap
 
value = DrawManager.PrepareShadowBitmap(grph, nDepth, rect, horz, iMinBrightness, iMaxBrightness, colorBase)
public static Bitmap PrepareShadowBitmap( 
   Graphics grph,
   int nDepth,
   Rectangle rect,
   bool horz,
   int iMinBrightness,
   int iMaxBrightness,
   Color colorBase
)
public: static Bitmap* PrepareShadowBitmap( 
   Graphics* grph,
   int nDepth,
   Rectangle rect,
   bool horz,
   int iMinBrightness,
   int iMaxBrightness,
   Color colorBase
) 
public:
static Bitmap^ PrepareShadowBitmap( 
   Graphics^ grph,
   int nDepth,
   Rectangle rect,
   bool horz,
   int iMinBrightness,
   int iMaxBrightness,
   Color colorBase
) 

Parameters

grph
Specifies a graphic to prepare bitmap.
nDepth

Specifies the shadow width and height.

rect

Specifies the boundaries of the area to draw a shadow.

horz

TRUE - horizontal orientation of the shadow, FALSE - vertical orientation.

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