Magick++ 7.1.2
Loading...
Searching...
No Matches
Magick::ColorCMYK Class Reference
Inheritance diagram for Magick::ColorCMYK:
Collaboration diagram for Magick::ColorCMYK:

Public Member Functions

 ColorCMYK (const Color &color_)
 ColorCMYK (const double cyan_, const double magenta_, const double yellow_, const double black_)
 ColorCMYK (const double cyan_, const double magenta_, const double yellow_, const double black_, const double alpha_)
ColorCMYKoperator= (const Color &color_)
void alpha (const double alpha_)
double alpha (void) const
void black (const double black_)
double black (void) const
void cyan (const double cyan_)
double cyan (void) const
void magenta (const double magenta_)
double magenta (void) const
void yellow (const double yellow_)
double yellow (void) const
Public Member Functions inherited from Magick::Color
 Color (const Magick::Quantum red_, const Magick::Quantum green_, const Magick::Quantum blue_)
 Color (const Magick::Quantum red_, const Magick::Quantum green_, const Magick::Quantum blue_, const Magick::Quantum alpha_)
 Color (const Magick::Quantum cyan_, const Magick::Quantum magenta_, const Magick::Quantum yellow_, const Magick::Quantum black_, const Magick::Quantum alpha_)
 Color (const char *color_)
 Color (const Color &color_)
 Color (const PixelInfo &color_)
 Color (const std::string &color_)
Coloroperator= (const Color &color_)
const Coloroperator= (const char *color)
const Coloroperator= (const PixelInfo &color_)
const Coloroperator= (const std::string &color)
 operator PixelInfo () const
 operator std::string () const
bool isFuzzyEquivalent (const Color &color_, const double fuzz_) const
void isValid (const bool valid_)
bool isValid (void) const
Magick::Color::PixelType pixelType (void) const
void quantumAlpha (const Quantum alpha_)
Quantum quantumAlpha (void) const
void quantumBlack (const Quantum black_)
Quantum quantumBlack (void) const
void quantumBlue (const Quantum blue_)
Quantum quantumBlue (void) const
void quantumGreen (const Quantum green_)
Quantum quantumGreen (void) const
void quantumRed (const Quantum red_)
Quantum quantumRed (void) const

Protected Member Functions

 ColorCMYK (PixelInfo *rep_, PixelType pixelType_)
Protected Member Functions inherited from Magick::Color
 Color (PixelInfo *rep_, PixelType pixelType_)
 Color (PixelType pixelType_)
void pixel (PixelInfo *rep_, PixelType pixelType_)

Additional Inherited Members

Public Types inherited from Magick::Color
enum  PixelType { CMYKPixel , CMYKAPixel , RGBPixel , RGBAPixel }
Static Protected Member Functions inherited from Magick::Color
static Quantum scaleDoubleToQuantum (const double double_)
static double scaleQuantumToDouble (const Quantum quantum_)
Protected Attributes inherited from Magick::Color
PixelInfo * _pixel

Detailed Description

Definition at line 191 of file Color.h.

Constructor & Destructor Documentation

◆ ColorCMYK() [1/5]

Magick::ColorCMYK::ColorCMYK ( void )

Definition at line 457 of file Color.cpp.

458 : Color(CMYKPixel)
459{
460}

◆ ColorCMYK() [2/5]

Magick::ColorCMYK::ColorCMYK ( const Color & color_)

Definition at line 462 of file Color.cpp.

463 : Color(color_)
464{
465}

◆ ColorCMYK() [3/5]

Magick::ColorCMYK::ColorCMYK ( const double cyan_,
const double magenta_,
const double yellow_,
const double black_ )

Definition at line 467 of file Color.cpp.

469 : Color(CMYKPixel)
470{
471 cyan(cyan_);
472 magenta(magenta_);
473 yellow(yellow_);
474 black(black_);
475}

◆ ColorCMYK() [4/5]

Magick::ColorCMYK::ColorCMYK ( const double cyan_,
const double magenta_,
const double yellow_,
const double black_,
const double alpha_ )

Definition at line 477 of file Color.cpp.

479 : Color(CMYKAPixel)
480{
481 cyan(cyan_);
482 magenta(magenta_);
483 yellow(yellow_);
484 black(black_);
485 alpha(alpha_);
486}

◆ ~ColorCMYK()

Magick::ColorCMYK::~ColorCMYK ( void )

Definition at line 488 of file Color.cpp.

489{
490}

◆ ColorCMYK() [5/5]

Magick::ColorCMYK::ColorCMYK ( PixelInfo * rep_,
PixelType pixelType_ )
protected

Definition at line 548 of file Color.cpp.

549 : Color(rep_,pixelType_)
550{
551}

Member Function Documentation

◆ alpha() [1/2]

void Magick::ColorCMYK::alpha ( const double alpha_)

Definition at line 498 of file Color.cpp.

499{
500 quantumAlpha(scaleDoubleToQuantum(alpha_));
501}

◆ alpha() [2/2]

double Magick::ColorCMYK::alpha ( void ) const

Definition at line 503 of file Color.cpp.

504{
505 return(scaleQuantumToDouble(quantumAlpha()));
506}

◆ black() [1/2]

void Magick::ColorCMYK::black ( const double black_)

Definition at line 508 of file Color.cpp.

509{
510 quantumBlack(scaleDoubleToQuantum(black_));
511}

◆ black() [2/2]

double Magick::ColorCMYK::black ( void ) const

Definition at line 513 of file Color.cpp.

514{
515 return(scaleQuantumToDouble(quantumBlack()));
516}

◆ cyan() [1/2]

void Magick::ColorCMYK::cyan ( const double cyan_)

Definition at line 518 of file Color.cpp.

519{
520 quantumRed(scaleDoubleToQuantum(cyan_));
521}

◆ cyan() [2/2]

double Magick::ColorCMYK::cyan ( void ) const

Definition at line 523 of file Color.cpp.

524{
525 return(scaleQuantumToDouble(quantumRed()));
526}

◆ magenta() [1/2]

void Magick::ColorCMYK::magenta ( const double magenta_)

Definition at line 528 of file Color.cpp.

529{
530 quantumGreen(scaleDoubleToQuantum(magenta_));
531}

◆ magenta() [2/2]

double Magick::ColorCMYK::magenta ( void ) const

Definition at line 533 of file Color.cpp.

534{
535 return(scaleQuantumToDouble(quantumGreen()));
536}

◆ operator=()

Magick::ColorCMYK & Magick::ColorCMYK::operator= ( const Color & color_)

Definition at line 492 of file Color.cpp.

493{
494 *static_cast<Magick::Color*>(this)=color_;
495 return(*this);
496}

◆ yellow() [1/2]

void Magick::ColorCMYK::yellow ( const double yellow_)

Definition at line 538 of file Color.cpp.

539{
540 quantumBlue(scaleDoubleToQuantum(yellow_));
541}

◆ yellow() [2/2]

double Magick::ColorCMYK::yellow ( void ) const

Definition at line 543 of file Color.cpp.

544{
545 return(scaleQuantumToDouble(quantumBlue()));
546}

The documentation for this class was generated from the following files:
  • ImageMagick-7/Magick++/lib/Magick++/Color.h
  • ImageMagick-7/Magick++/lib/Color.cpp