Magick++ 7.1.2-32
Convert, Edit, Or Compose Bitmap Images
Loading...
Searching...
No Matches
Magick::ColorCMYK Class Reference
Inheritance diagram for Magick::ColorCMYK:
Magick::Color

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_)
ColorCMYK & operator= (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_)
Color & operator= (const Color &color_)
const Color & operator= (const char *color)
const Color & operator= (const PixelInfo &color_)
const Color & operator= (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 475 of file Color.cpp.

476 : Color(CMYKPixel)
477{
478}

◆ ColorCMYK() [2/5]

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

Definition at line 480 of file Color.cpp.

481 : Color(color_)
482{
483}

◆ ColorCMYK() [3/5]

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

Definition at line 485 of file Color.cpp.

487 : Color(CMYKPixel)
488{
489 cyan(cyan_);
490 magenta(magenta_);
491 yellow(yellow_);
492 black(black_);
493}

◆ ColorCMYK() [4/5]

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

Definition at line 495 of file Color.cpp.

497 : Color(CMYKAPixel)
498{
499 cyan(cyan_);
500 magenta(magenta_);
501 yellow(yellow_);
502 black(black_);
503 alpha(alpha_);
504}

◆ ~ColorCMYK()

Magick::ColorCMYK::~ColorCMYK ( void )

Definition at line 506 of file Color.cpp.

507{
508}

◆ ColorCMYK() [5/5]

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

Definition at line 566 of file Color.cpp.

567 : Color(rep_,pixelType_)
568{
569}

Member Function Documentation

◆ alpha() [1/2]

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

Definition at line 516 of file Color.cpp.

517{
518 quantumAlpha(scaleDoubleToQuantum(alpha_));
519}

◆ alpha() [2/2]

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

Definition at line 521 of file Color.cpp.

522{
523 return(scaleQuantumToDouble(quantumAlpha()));
524}

◆ black() [1/2]

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

Definition at line 526 of file Color.cpp.

527{
528 quantumBlack(scaleDoubleToQuantum(black_));
529}

◆ black() [2/2]

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

Definition at line 531 of file Color.cpp.

532{
533 return(scaleQuantumToDouble(quantumBlack()));
534}

◆ cyan() [1/2]

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

Definition at line 536 of file Color.cpp.

537{
538 quantumRed(scaleDoubleToQuantum(cyan_));
539}

◆ cyan() [2/2]

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

Definition at line 541 of file Color.cpp.

542{
543 return(scaleQuantumToDouble(quantumRed()));
544}

◆ magenta() [1/2]

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

Definition at line 546 of file Color.cpp.

547{
548 quantumGreen(scaleDoubleToQuantum(magenta_));
549}

◆ magenta() [2/2]

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

Definition at line 551 of file Color.cpp.

552{
553 return(scaleQuantumToDouble(quantumGreen()));
554}

◆ operator=()

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

Definition at line 510 of file Color.cpp.

511{
512 *static_cast<Magick::Color*>(this)=color_;
513 return(*this);
514}

◆ yellow() [1/2]

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

Definition at line 556 of file Color.cpp.

557{
558 quantumBlue(scaleDoubleToQuantum(yellow_));
559}

◆ yellow() [2/2]

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

Definition at line 561 of file Color.cpp.

562{
563 return(scaleQuantumToDouble(quantumBlue()));
564}

The documentation for this class was generated from the following files:
  • /home/cristy/Attic/Build/ImageMagick-7.1.2/rpmbuild/BUILD/ImageMagick-7.1.2-build/ImageMagick-7.1.2-32/Magick++/lib/Magick++/Color.h
  • /home/cristy/Attic/Build/ImageMagick-7.1.2/rpmbuild/BUILD/ImageMagick-7.1.2-build/ImageMagick-7.1.2-32/Magick++/lib/Color.cpp