![]() |
IDS peak ICV v1.0.0
|
#include <peak_icv/painting/peak_icv_opacity.hpp>


Public Member Functions | |
| constexpr | Opacity () |
| Constructs an Opacity object with a default value of 100. | |
| constexpr | Opacity (uint32_t value) |
| Constructs an Opacity object with the specified value. | |
| constexpr uint32_t | GetValue () const |
| Retrieve the current opacity value. | |
| template<typename Opacity > | |
| auto | operator== (const Opacity &value) const |
Static Public Member Functions | |
| static constexpr uint32_t | GetMinimum () |
| Get the smallest possible value for opacity. | |
| static constexpr uint32_t | GetMaximum () |
| Get the largest possible value for opacity. | |
Opacity refers to the transparency or the degree to which an object or pixel allows the background to show through. The Opacity is ranging from 0 to 100, where 0 indicates complete transparency (invisible) and 100 represents complete opacity (fully visible). Values between 0 and 100 represent varying levels of transparency.
Definition at line 34 of file peak_icv_opacity.hpp.
|
inlineexplicitconstexpr |
Constructs an Opacity object with a default value of 100.
Definition at line 42 of file peak_icv_opacity.hpp.
|
inlineexplicitconstexpr |
Constructs an Opacity object with the specified value.
| value | Value of the Opacity |
| OutOfRangeException | if the opacity value is greater than 100 |
Definition at line 55 of file peak_icv_opacity.hpp.
|
inlinestaticconstexpr |
Get the largest possible value for opacity.
Definition at line 96 of file peak_icv_opacity.hpp.
|
inlinestaticconstexpr |
Get the smallest possible value for opacity.
Definition at line 84 of file peak_icv_opacity.hpp.
|
inlineconstexpr |
Retrieve the current opacity value.
Definition at line 72 of file peak_icv_opacity.hpp.
Definition at line 112 of file peak_icv_opacity.hpp.