Stores all the possible representations of a color-based ArtColor in all supported color models; the original model is indicated by the master member.
More...
#include <hdicoreArtColor.h>
|
typedef std::unique_ptr< RGB > | RGBUP |
|
typedef std::shared_ptr< RGB > | RGBSP |
|
typedef std::weak_ptr< RGB > | RGBWP |
|
typedef std::unique_ptr< CMYK > | CMYKUP |
|
typedef std::shared_ptr< CMYK > | CMYKSP |
|
typedef std::weak_ptr< CMYK > | CMYKWP |
|
typedef std::unique_ptr< Lab > | LabUP |
|
typedef std::shared_ptr< Lab > | LabSP |
|
typedef std::weak_ptr< Lab > | LabWP |
|
typedef std::unique_ptr< HSB > | HSBUP |
|
typedef std::shared_ptr< HSB > | HSBSP |
|
typedef std::weak_ptr< HSB > | HSBWP |
|
|
Type | master |
| Stores the "master" type of channel data stored in the target object. The gray, rgb, cmyk, or lab member that matches this member will have the most accurate values as all other members were derived via color conversion.
|
|
double | gray |
| Stores the grayscale color gray channel (0.0 is white, 1.0 is black)
|
|
RGB | rgb |
| Stores the RGB channels.
|
|
CMYK | cmyk |
| Stores the CMYK channels.
|
|
Lab | lab |
| Stores the Lab channels.
|
|
HSB | hsb |
| Stores the HSB channels.
|
|
Stores all the possible representations of a color-based ArtColor in all supported color models; the original model is indicated by the master member.
◆ Channels() [1/3]
hdi::core::ArtColor::Channels::Channels |
( |
| ) |
|
Constructs a new Channels object with default values.
- Author
- GW
- Date
- 07/2014
◆ Channels() [2/3]
hdi::core::ArtColor::Channels::Channels |
( |
const Channels & |
obj_ | ) |
|
Constructs a new Channels object from an existing Channels.
- Author
- GW
- Date
- 07/2014
- Parameters
-
obj_ | Existing Channels object to copy values from |
◆ Channels() [3/3]
hdi::core::ArtColor::Channels::Channels |
( |
const Type |
master_, |
|
|
const double |
gray_, |
|
|
const RGB & |
rgb_, |
|
|
const CMYK & |
cmyk_, |
|
|
const Lab & |
lab_, |
|
|
const HSB & |
hsb_ |
|
) |
| |
Constructs a new Channels object with the given values.
- Author
- GW
- Date
- 07/2014
- Parameters
-
master_ | (See master member description) |
gray_ | (See gray member description) |
rgb_ | (See rgb member description) |
cmyk_ | (See cmyk member description) |
lab_ | (See lab member description) |
hsb_ | (See hsb member description) |
◆ ~Channels()
virtual hdi::core::ArtColor::Channels::~Channels |
( |
| ) |
|
|
virtual |
Destructs a Channels object.
- Author
- GW
- Date
- 07/2014
◆ operator=()
Channels assignment operator.
- Author
- GW
- Date
- 12/2013
- Parameters
-
rhs_ | Existing Channels object to copy values from (righthand side of the assignment operator) |
- Returns
- The target Channels object, but with its values updated