Method | Description | |
---|---|---|
ToAlpha ( this self, double opacity ) : |
Converts given color to the specified opacity.
|
|
ToBrush ( this self, double opacity = 1 ) : |
Converts the given color to a solid color brush at the given opacity.
|
|
ToGradient ( this direction, |
Creates a gradient brush with the given colors flowing in the specified direction.
|
Method | Description | |
---|---|---|
ToByte ( byte colorValue, double opacity ) : byte |
public static ToAlpha ( this self, double opacity ) : |
||
self | this | The color to convert. |
opacity | double | The opacity percentage (value from 0 to 1). |
return |
public static ToBrush ( this self, double opacity = 1 ) : |
||
self | this | The color to build the brush from. |
opacity | double | The oapcity percentage (value from 0 to 1). |
return |
public static ToGradient ( this direction, |
||
direction | this | The direction of the gradient. |
start | The starting color. | |
end | The ending color. | |
return | System.Windows.Media.LinearGradientBrush |