xtd 1.0.0
Loading...
Searching...
No Matches
cmyk.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 cmyk {
24
39
41
49 return cmyk {.cyan = cyan, .magenta = magenta, .yellow = yellow, .black = black};
50 }
51
54 [[nodiscard]] static auto from_cmyk(const cmyk& value) noexcept -> xtd::drawing::cmyk {
55 return value;
56 }
57
58
60 friend auto operator <<(std::ostream& os, const cmyk& value) -> std::ostream& {
61 return os << xtd::string::format("cmyk [cyan = {}, magenta = {}, yellow = {}, black = {}]", value.cyan, value.magenta, value.black);
62 };
64 };
65 }
66}
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 cmyk struct.
Definition cmyk.hpp:22
static auto from_cmyk(const cmyk &value) noexcept -> xtd::drawing::cmyk
Creates a xtd::cmyk struct from the specified axtd::drawing::cmyk value.
Definition cmyk.hpp:54
static auto from_cmyk(xtd::single cyan, xtd::single magenta, xtd::single yellow, xtd::single black) noexcept -> xtd::drawing::cmyk
Creates a xtd::cmyk struct from the specified cyan, magenta, and yellow single values.
Definition cmyk.hpp:48
xtd::single yellow
Gets or sets the yellow component value of this xtd::drawing::cmyk struct.
Definition cmyk.hpp:34
xtd::single magenta
Gets or sets the magenta component value of this xtd::drawing::cmyk struct.
Definition cmyk.hpp:31
xtd::single cyan
Gets or sets the cyan component value of this xtd::drawing::cmyk struct.
Definition cmyk.hpp:28
xtd::single black
Gets or sets the black component value of this xtd::drawing::cmyk struct.
Definition cmyk.hpp:37