Version

GetAlphaBlendColor Method (DrawUtility)

Returns a color with the alpha channel set based on the specified alpha level. If the color already has its alpha channel set, it will be adjusted based on the specified alpha level. e.g. If the color's A = 100 and the alphaLevel is 123, the new color's A will be approximately 50.
Syntax
'Declaration
 
Public Shared Function GetAlphaBlendColor( _
   ByVal color As Color, _
   ByVal alphaLevel As Short _
) As Color
public static Color GetAlphaBlendColor( 
   Color color,
   short alphaLevel
)

Parameters

color
Color to modify
alphaLevel
Alpha level by which the color should be adjusted

Return Value

The specified color with its System.Drawing.Color.A modified.
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