ComponentOne Basic Library for WPF and Silverlight
WithAlpha Method


C1.WPF Namespace > ColorEx Class : WithAlpha Method
The color.
a.
Creates a new color modifying the alpha channel.
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function WithAlpha( _
   ByVal color As System.Windows.Media.Brush, _
   ByVal a As System.Byte _
) As System.Windows.Media.Brush
'Usage
 
Dim color As System.Windows.Media.Brush
Dim a As System.Byte
Dim value As System.Windows.Media.Brush
 
value = ColorEx.WithAlpha(color, a)
[System.Runtime.CompilerServices.Extension()]
public static System.Windows.Media.Brush WithAlpha( 
   System.Windows.Media.Brush color,
   System.byte a
)

Parameters

color
The color.
a
a.
See Also

Reference

ColorEx Class
ColorEx Members