Creates a new color modifying the alpha channel.
Syntax
'Declaration
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function WithAlpha( _
ByVal As System.Windows.Media.Brush, _
ByVal 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 ,
System.byte
)
Parameters
- color
- The color.
- a
- a.
See Also