BCGControlBar Library for .NET
PixelAlpha(Color,Double,Double,Double) Method




The color of the pixel to set the alpha blending.
The alpha value of the red color component to set.
The alpha value of the green color component to set.
The alpha value of the blue color component to set.
Sets alpha value for a current color.
Syntax
'Declaration
 
Public Overloads Shared Function PixelAlpha( _
   ByVal srcPixel As Color, _
   ByVal percentR As Double, _
   ByVal percentG As Double, _
   ByVal percentB As Double _
) As Color
'Usage
 
Dim srcPixel As Color
Dim percentR As Double
Dim percentG As Double
Dim percentB As Double
Dim value As Color
 
value = DrawManager.PixelAlpha(srcPixel, percentR, percentG, percentB)
public static Color PixelAlpha( 
   Color srcPixel,
   double percentR,
   double percentG,
   double percentB
)
public: static Color PixelAlpha( 
   Color srcPixel,
   double percentR,
   double percentG,
   double percentB
) 
public:
static Color PixelAlpha( 
   Color srcPixel,
   double percentR,
   double percentG,
   double percentB
) 

Parameters

srcPixel
The color of the pixel to set the alpha blending.
percentR
The alpha value of the red color component to set.
percentG
The alpha value of the green color component to set.
percentB
The alpha value of the blue color component to set.
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
Overload List

Send Feedback