Describes a set of CMYK channels.
More...
#include <hdicoreArtColor.h>
|
() | CMYK () |
| Constructs a CMYK object with default values.
|
|
() | CMYK (const CMYK &obj_) |
| Constructs a new CMYK object from an existing CMYK.
|
|
() | CMYK (const double c_, const double m_, const double y_, const double k_) |
| Constructs a new CMYK object with the given values.
|
|
virtual | ~CMYK () |
| Destructs a CMYK object.
|
|
CMYK & | operator= (const CMYK &rhs_) |
| CMYK assignment operator.
|
|
bool | operator== (const CMYK &rhs_) const |
| Tests whether a given CMYK object is the same as another.
|
|
bool | operator!= (const CMYK &rhs_) const |
| Tests whether a given CMYK object is not the same as another.
|
|
|
double | cyan |
| Stores the CMYK color cyan channel, in the range [0.0,1.0].
|
|
double | magenta |
| Stores the CMYK color magenta channel, in the range [0.0,1.0].
|
|
double | yellow |
| Stores the CMYK color yellow channel, in the range [0.0,1.0].
|
|
double | black |
| Stores the CMYK color black channel, in the range [0.0,1.0].
|
|
Describes a set of CMYK channels.
◆ CMYK() [1/3]
() hdi::core::ArtColor::Channels::CMYK::CMYK |
( |
| ) |
|
Constructs a CMYK object with default values.
- Author
- GW
- Date
- 07/2014
◆ CMYK() [2/3]
() hdi::core::ArtColor::Channels::CMYK::CMYK |
( |
const CMYK & |
obj_ | ) |
|
Constructs a new CMYK object from an existing CMYK.
- Author
- GW
- Date
- 07/2014
- Parameters
-
obj_ | Existing CMYK object to copy values from |
◆ CMYK() [3/3]
() hdi::core::ArtColor::Channels::CMYK::CMYK |
( |
const double |
c_, |
|
|
const double |
m_, |
|
|
const double |
y_, |
|
|
const double |
k_ |
|
) |
| |
Constructs a new CMYK object with the given values.
- Author
- GW
- Date
- 07/2014
- Parameters
-
c_ | (See cyan member description) |
m_ | (See magenta member description) |
y_ | (See yellow member description) |
k_ | (See black member description) |
◆ ~CMYK()
virtual hdi::core::ArtColor::Channels::CMYK::~CMYK |
( |
| ) |
|
|
virtual |
Destructs a CMYK object.
- Author
- GW
- Date
- 07/2014
◆ operator!=()
bool hdi::core::ArtColor::Channels::CMYK::operator!= |
( |
const CMYK & |
rhs_ | ) |
const |
Tests whether a given CMYK object is not the same as another.
- Author
- GW
- Date
- 03/2015
- Parameters
-
rhs_ | CMYK to compare against (righthand side of inequality operator) |
- Returns
- true for the target and rhs_ being different colors, false otherwise
◆ operator=()
CMYK & hdi::core::ArtColor::Channels::CMYK::operator= |
( |
const CMYK & |
rhs_ | ) |
|
CMYK assignment operator.
- Author
- GW
- Date
- 07/2014
- Parameters
-
rhs_ | Existing CMYK object to copy values from (righthand side of the assignment operator) |
- Returns
- The target CMYK object, but with its values updated
◆ operator==()
bool hdi::core::ArtColor::Channels::CMYK::operator== |
( |
const CMYK & |
rhs_ | ) |
const |
Tests whether a given CMYK object is the same as another.
- Author
- GW
- Date
- 03/2015
- Parameters
-
rhs_ | CMYK to compare against (righthand side of equality operator) |
- Returns
- true for the target and rhs_ being the same colors, false otherwise