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

Definition

The hsv struct.

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

Public Properties

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

Public Static Methods

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

Member Function Documentation

◆ from_hsv() [1/2]

auto xtd::drawing::hsv::from_hsv ( xtd::single hue,
xtd::single saturation,
xtd::single value ) -> xtd::drawing::hsv
inlinestaticnodiscardnoexcept

Creates a xtd::hsv struct from the specified hue, saturation, and value single values.

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

◆ from_hsv() [2/2]

auto xtd::drawing::hsv::from_hsv ( const hsv & value) -> xtd::drawing::hsv
inlinestaticnodiscardnoexcept

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

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

Member Data Documentation

◆ hue

xtd::single xtd::drawing::hsv::hue

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

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

◆ saturation

xtd::single xtd::drawing::hsv::saturation

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

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

◆ value

xtd::single xtd::drawing::hsv::value

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

Parameters
rbyte The value component value of this xtd::drawing::hsv.

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