Version

DrawBorderShadow Method

Draws a shadow around an image rectangle
Syntax
'Declaration
 
Public Shared Sub DrawBorderShadow( _
   ByVal g As Graphics, _
   ByVal invalidRect As Rectangle, _
   ByVal imgRect As Rectangle, _
   ByVal shadowColor As Color, _
   ByVal startAlpha As Byte, _
   ByVal endAlpha As Byte, _
   ByVal shadowDepth As Byte _
) 
public static void DrawBorderShadow( 
   Graphics g,
   Rectangle invalidRect,
   Rectangle imgRect,
   Color shadowColor,
   byte startAlpha,
   byte endAlpha,
   byte shadowDepth
)

Parameters

g
Graphics object to render into
invalidRect
The rect that this shadow should be restricted to
imgRect
The Rectangle wher the image will be drawn
shadowColor
The color of the shadow
startAlpha
The starting alpha
endAlpha
The ending alpha
shadowDepth
The depth of the shadow
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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