Version

DrawGlassOverlay Method

Draws a glass overlay over the specified rectangle.
Syntax
'Declaration
 
Public Shared Sub DrawGlassOverlay( _
   ByVal control As Control, _
   ByVal graphics As Graphics, _
   ByVal orientation As GlowOrientation, _
   ByVal percentage As GlassPercentage, _
   ByVal bright As Boolean, _
   ByVal alpha As Short, _
   ByVal rect As Rectangle, _
   ByVal invalidRect As Rectangle _
) 
public static void DrawGlassOverlay( 
   Control control,
   Graphics graphics,
   GlowOrientation orientation,
   GlassPercentage percentage,
   bool bright,
   short alpha,
   Rectangle rect,
   Rectangle invalidRect
)

Parameters

control
The control (required for GradiantAlignment support).
graphics
The graphics object to render on.
orientation
Indicates the orientation/side the glass is drawn on.
percentage
Indicates the percentage of the rectangle the glass is painted on
bright
Indicates if the bright gradient should be applied.
alpha
The alpha level for the overlay. Defaults to 150 if set to a value outside 0-255.
rect
The overall rect the area that's going to contain the gradient.
invalidRect
The area to fill.
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