Version

DrawGlowGradient Method

Draws a rounded glow gradient at the specified orientation of the System.Drawing.Rectangle provided.
Syntax
'Declaration
 
Public Shared Sub DrawGlowGradient( _
   ByVal rect As Rectangle, _
   ByVal orientation As GlowOrientation, _
   ByVal g As Graphics, _
   ByVal innerColor As Color, _
   ByVal outerColor As Color, _
   ByVal circleTopPercentage As Integer, _
   ByVal innerGlowFalloffTabPercentage As Integer, _
   ByVal outerGlowFalloffTabPercentage As Integer _
) 
public static void DrawGlowGradient( 
   Rectangle rect,
   GlowOrientation orientation,
   Graphics g,
   Color innerColor,
   Color outerColor,
   int circleTopPercentage,
   int innerGlowFalloffTabPercentage,
   int outerGlowFalloffTabPercentage
)

Parameters

rect
The System.Drawing.Rectangle to draw within.
orientation
The location of the glow effect.
g
The graphics object with which to draw the glow.
innerColor
The inner glow color.
outerColor
The color that the gradient ultimately resolves to.
circleTopPercentage
The percentage of the height/width, depending on the orientation, of the System.Drawing.Rectangle to draw the top of the glow.
innerGlowFalloffTabPercentage
The percentage used to draw the inner glow, based on the distance from the edge of the tab, or the middle of the circle, whichever is closer, to the edge of the circle.
outerGlowFalloffTabPercentage
The percentage used to draw the outer glow, based on the distance from the edge of the tab, or the middle of the circle, whichever is closer, to the edge of the circle.
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