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

Definition

The cmyk struct.

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

Public Properties

xtd::single cyan
 Gets or sets the cyan component value of this xtd::drawing::cmyk struct.
xtd::single magenta
 Gets or sets the magenta component value of this xtd::drawing::cmyk struct.
xtd::single yellow
 Gets or sets the yellow component value of this xtd::drawing::cmyk struct.
xtd::single black
 Gets or sets the black component value of this xtd::drawing::cmyk struct.

Public Static Methods

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.
static auto from_cmyk (const cmyk &value) noexcept -> xtd::drawing::cmyk
 Creates a xtd::cmyk struct from the specified axtd::drawing::cmyk value.

Member Function Documentation

◆ from_cmyk() [1/2]

auto xtd::drawing::cmyk::from_cmyk ( xtd::single cyan,
xtd::single magenta,
xtd::single yellow,
xtd::single black ) -> xtd::drawing::cmyk
inlinestaticnodiscardnoexcept

Creates a xtd::cmyk struct from the specified cyan, magenta, and yellow single values.

Parameters
cyanThe a single value.
magentaThe r single value.
yellowThe g single value.
Returns
an xtd::drawing::cmyk value that contains decomposed unsigned integer value.

◆ from_cmyk() [2/2]

auto xtd::drawing::cmyk::from_cmyk ( const cmyk & value) -> xtd::drawing::cmyk
inlinestaticnodiscardnoexcept

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

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

Member Data Documentation

◆ cyan

xtd::single xtd::drawing::cmyk::cyan

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

Parameters
abyte The cyan component value of this xtd::drawing::cmyk.

◆ magenta

xtd::single xtd::drawing::cmyk::magenta

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

Parameters
rbyte The magenta component value of this xtd::drawing::cmyk.

◆ yellow

xtd::single xtd::drawing::cmyk::yellow

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

Parameters
rbyte The yellow component value of this xtd::drawing::cmyk.

◆ black

xtd::single xtd::drawing::cmyk::black

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

Parameters
rbyte The black component value of this xtd::drawing::cmyk.

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