Public Member Functions | |
| Opacity () | |
| Constructs an Opacity object with full opacity (100). | |
| Opacity (uint value) | |
| Constructs an Opacity object with the specified value. | |
| override string | ToString () |
| Returns a string that represents the current opacity value. | |
Properties | |
| static uint | Minimum = 0 [get] |
| The minimum allowed opacity value. | |
| static uint | Maximum = 100 [get] |
| The maximum allowed opacity value. | |
| uint | Value [get, set] |
| The opacity value. Must be between 0 and 100. | |
| static IEqualityComparer< Opacity > | Comparer = new OpacityEqualityComparer() [get] |
| A default equality comparer for comparing Opacity data values. | |
Holds an opacity value representing the transparency level of an object or pixel.
Opacity ranges from 0 to 100, where 0 indicates complete transparency and 100 indicates complete opacity. Intermediate values represent varying levels of transparency.
Definition at line 15 of file Opacity.cs.
|
inline |
Constructs an Opacity object with full opacity (100).
Definition at line 23 of file Opacity.cs.
|
inline |
Constructs an Opacity object with the specified value.
| value | Opacity value in the range [0, 100] |
Definition at line 34 of file Opacity.cs.
|
inline |
Returns a string that represents the current opacity value.
Definition at line 86 of file Opacity.cs.
|
staticget |
A default equality comparer for comparing Opacity data values.
Definition at line 77 of file Opacity.cs.
|
staticget |
The maximum allowed opacity value.
Definition at line 49 of file Opacity.cs.
|
staticget |
The minimum allowed opacity value.
Definition at line 43 of file Opacity.cs.
|
getset |
The opacity value. Must be between 0 and 100.
| IcvOutOfRangeException | The value is out of range. |
Definition at line 58 of file Opacity.cs.