xtd 1.0.0
Loading...
Searching...
No Matches
hsv.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/byte>
6#include <xtd/string>
7#include <xtd/uint32>
8
10namespace xtd {
12 namespace drawing {
22 struct hsv {
24
36
38
46 return hsv {.hue = hue, .saturation = saturation, .value = value};
47 }
48
51 [[nodiscard]] static auto from_hsv(const hsv& value) noexcept -> xtd::drawing::hsv {
52 return value;
53 }
54
55
57 friend auto operator <<(std::ostream& os, const hsv& value) -> std::ostream& {
58 return os << xtd::string::format("hsv [hue = {}, saturation = {}, value = {}]", value.hue, value.saturation, value.value);
59 };
61 };
62 }
63}
static auto format(const basic_string< char > &fmt, args_t &&... args) -> basic_string
float single
Represents a single-precision floating-point number.
Definition single.hpp:23
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
The hsv struct.
Definition hsv.hpp:22
xtd::single value
Gets or sets the value component value of this xtd::drawing::hsv struct.
Definition hsv.hpp:34
static auto from_hsv(const hsv &value) noexcept -> xtd::drawing::hsv
Creates a xtd::hsv struct from the specified axtd::drawing::hsv value.
Definition hsv.hpp:51
xtd::single saturation
Gets or sets the saturation component value of this xtd::drawing::hsv struct.
Definition hsv.hpp:31
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.
Definition hsv.hpp:45
xtd::single hue
Gets or sets the hue component value of this xtd::drawing::hsv struct.
Definition hsv.hpp:28