Public Properties | |
| xtd::byte | r |
| Gets or sets the red component value of this xtd::drawing::helpers::rgb struct. | |
| xtd::byte | g |
| Gets or sets the green component value of this xtd::drawing::helpers::rbg struct. | |
| xtd::byte | b |
| Gets or sets the blue component value of this xtd::drawing::helpers::rbg struct. | |
Public Methods | |
| auto | get_hue () const noexcept -> float |
| Gets the hue-saturation-lightness (HSL) hue value, in degrees, for this xtd::drawing::helpers::rgb structure. | |
| auto | get_lightness () const noexcept -> float |
| Gets the hue-saturation-lightness (HSL) lightness value for this xtd::drawing::helpers::rgb structure. | |
| auto | get_saturation () const noexcept -> float |
| Gets the hue-saturation-lightness (HSL) saturation value for this xtd::drawing::helpers::rgb structure. | |
| auto | to_hsl () const noexcept -> std::tuple< float, float, float > |
Public Static Methods | |
| static auto | alpha_blend (const rgb &fore_componant, const rgb &back_componant, double alpha) noexcept -> xtd::drawing::helpers::rgb |
| Returns the weighted average color between the two given colors. | |
| static auto | alpha_blend (xtd::byte fore_componant, xtd::byte back_componant, double alpha) noexcept -> xtd::byte |
| Returns the weighted average color component between the two given color components. | |
| static auto | from_hsl (float hue, float saturation, float lightness) noexcept -> xtd::drawing::helpers::rgb |
| Creates a xtd::drawing::helpers::rgb strucg from the three HSL component (hue, saturation, and lightness) values. | |
|
inlinenodiscardnoexcept |
Gets the hue-saturation-lightness (HSL) hue value, in degrees, for this xtd::drawing::helpers::rgb structure.
|
inlinenodiscardnoexcept |
Gets the hue-saturation-lightness (HSL) lightness value for this xtd::drawing::helpers::rgb structure.
|
inlinenodiscardnoexcept |
Gets the hue-saturation-lightness (HSL) saturation value for this xtd::drawing::helpers::rgb structure.
|
inlinestaticnodiscardnoexcept |
Returns the weighted average color between the two given colors.
| fore_core | The foreground color. |
| back_color | The background color. |
| alpha | The alpha factor |
|
inlinestaticnodiscardnoexcept |
Returns the weighted average color component between the two given color components.
| fore_core | The foreground color component. |
| back_color | The background color component. |
| alpha | The alpha factor |
|
inlinestaticnodiscardnoexcept |
Creates a xtd::drawing::helpers::rgb strucg from the three HSL component (hue, saturation, and lightness) values.
| hue | The xtd::drawing::helpers::rgb saturation. The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated. |
| saturation | The xtd::drawing::helpers::rgb saturation. The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated. |
| lightness | The xtd::drawing::helpers::rgb lightness. The lightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white. |
| xtd::byte xtd::drawing::helpers::rgb::r |
Gets or sets the red component value of this xtd::drawing::helpers::rgb struct.
| r | byte The red component value of this xtd::drawing::helpers::rgb. |
| xtd::byte xtd::drawing::helpers::rgb::g |
Gets or sets the green component value of this xtd::drawing::helpers::rbg struct.
| r | byte The green component value of this xtd::drawing::helpers::rgb. |
| xtd::byte xtd::drawing::helpers::rgb::b |
Gets or sets the blue component value of this xtd::drawing::helpers::rbg struct.
| r | byte The blue component value of this xtd::drawing::helpers::rgb. |