xtd 1.0.0
Loading...
Searching...
No Matches
xtd::drawing::hsl Struct Reference

Definition

The hsl struct.

struct hsl;
The hsl struct.
Definition hsl.hpp:22
Namespace
xtd::drawing
Library
xtd.drawing

Public Properties

xtd::single hue
 Gets or sets the hue component value of this xtd::drawing::hsl struct.
xtd::single saturation
 Gets or sets the saturation component value of this xtd::drawing::hsl struct.
xtd::single lightness
 Gets or sets the lightness component value of this xtd::drawing::hsl struct.

Public Static Methods

static auto from_hsl (xtd::single hue, xtd::single saturation, xtd::single lightness) noexcept -> xtd::drawing::hsl
 Creates a xtd::hsl struct from the specified hue, saturation, and lightness single values.
static auto from_hsl (const hsl &value) noexcept -> xtd::drawing::hsl
 Creates a xtd::hsl struct from the specified axtd::drawing::hsl value.

Member Function Documentation

◆ from_hsl() [1/2]

auto xtd::drawing::hsl::from_hsl ( xtd::single hue,
xtd::single saturation,
xtd::single lightness ) -> xtd::drawing::hsl
inlinestaticnodiscardnoexcept

Creates a xtd::hsl struct from the specified hue, saturation, and lightness single values.

Parameters
hueThe a single value.
saturationThe r single value.
lightnessThe g single value.
Returns
an xtd::drawing::hsl value that contains decomposed unsigned integer value.

◆ from_hsl() [2/2]

auto xtd::drawing::hsl::from_hsl ( const hsl & value) -> xtd::drawing::hsl
inlinestaticnodiscardnoexcept

Creates a xtd::hsl struct from the specified axtd::drawing::hsl value.

Parameters
valueThe hsl value.
Returns
an xtd::drawing::hsl value that contains decomposed unsigned integer value.

Member Data Documentation

◆ hue

xtd::single xtd::drawing::hsl::hue

Gets or sets the hue component value of this xtd::drawing::hsl struct.

Parameters
abyte The hue component value of this xtd::drawing::hsl.

◆ saturation

xtd::single xtd::drawing::hsl::saturation

Gets or sets the saturation component value of this xtd::drawing::hsl struct.

Parameters
rbyte The saturation component value of this xtd::drawing::hsl.

◆ lightness

xtd::single xtd::drawing::hsl::lightness

Gets or sets the lightness component value of this xtd::drawing::hsl struct.

Parameters
rbyte The lightness component value of this xtd::drawing::hsl.

The documentation for this struct was generated from the following file:
  • xtd.drawing/include/xtd/drawing/hsl.hpp