The rgb struct.
The rgb struct.
Definition rgb.hpp:23
- Namespace
- xtd::drawing::helpers
- Library
- xtd.drawing
|
static rgb | alpha_blend (const rgb &fore_componant, const rgb &back_componant, double alpha) noexcept |
| Returns the weighted average color between the two given colors.
|
|
static xtd::byte | alpha_blend (xtd::byte fore_componant, xtd::byte back_componant, double alpha) noexcept |
| Returns the weighted average color component between the two given color components.
|
|
static rgb | from_hsl (float hue, float saturation, float lightness) noexcept |
| Creates a xtd::drawing::helpers::rgb strucg from the three HSL component (hue, saturation, and lightness) values.
|
|
◆ get_hue()
float xtd::drawing::helpers::rgb::get_hue |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_lightness()
float xtd::drawing::helpers::rgb::get_lightness |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_saturation()
float xtd::drawing::helpers::rgb::get_saturation |
( |
| ) |
const |
|
inlinenoexcept |
◆ alpha_blend() [1/2]
static rgb xtd::drawing::helpers::rgb::alpha_blend |
( |
const rgb & |
fore_componant, |
|
|
const rgb & |
back_componant, |
|
|
double |
alpha |
|
) |
| |
|
inlinestaticnoexcept |
Returns the weighted average color between the two given colors.
- Parameters
-
fore_core | The foreground color. |
back_color | The background color. |
alpha | The alpha factor |
- Returns
- The combined color.
◆ alpha_blend() [2/2]
Returns the weighted average color component between the two given color components.
- Parameters
-
fore_core | The foreground color component. |
back_color | The background color component. |
alpha | The alpha factor |
- Returns
- The combined color component.
◆ from_hsl()
static rgb xtd::drawing::helpers::rgb::from_hsl |
( |
float |
hue, |
|
|
float |
saturation, |
|
|
float |
lightness |
|
) |
| |
|
inlinestaticnoexcept |
Gets or sets the green component value of this xtd::drawing::helpers::rbg struct.
- Parameters
-
Gets or sets the blue component value of this xtd::drawing::helpers::rbg struct.
- Parameters
-
The documentation for this struct was generated from the following file:
- xtd.drawing/include/xtd/drawing/helpers/rgb.hpp