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

Definition

The hsb struct.

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

Public Properties

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

Public Static Methods

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

Member Function Documentation

◆ from_hsb() [1/2]

auto xtd::drawing::hsb::from_hsb ( xtd::single hue,
xtd::single saturation,
xtd::single brightness ) -> xtd::drawing::hsb
inlinestaticnodiscardnoexcept

Creates a xtd::hsb struct from the specified hue, saturation, and brightness single values.

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

◆ from_hsb() [2/2]

auto xtd::drawing::hsb::from_hsb ( const hsb & value) -> xtd::drawing::hsb
inlinestaticnodiscardnoexcept

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

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

Member Data Documentation

◆ hue

xtd::single xtd::drawing::hsb::hue

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

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

◆ saturation

xtd::single xtd::drawing::hsb::saturation

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

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

◆ brightness

xtd::single xtd::drawing::hsb::brightness

Gets or sets the brightness component value of this xtd::drawing::hsb struct.

Parameters
rbyte The brightness component value of this xtd::drawing::hsb.

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