Magick++  6.9.3
Magick::Color Class Reference

#include <Color.h>

Inheritance diagram for Magick::Color:
Collaboration diagram for Magick::Color:

Public Member Functions

 Color (void)
 
 Color (Quantum red_, Quantum green_, Quantum blue_)
 
 Color (Quantum red_, Quantum green_, Quantum blue_, Quantum alpha_)
 
 Color (const char *x11color_)
 
 Color (const Color &color_)
 
 Color (const PixelPacket &color_)
 
 Color (const std::string &x11color_)
 
virtual ~Color (void)
 
Coloroperator= (const Color &color_)
 
const Coloroperator= (const char *x11color)
 
const Coloroperator= (const std::string &x11color_)
 
const Coloroperator= (const PixelPacket &color_)
 
 operator PixelPacket () const
 
 operator std::string () const
 
void alpha (double alpha_)
 
double alpha (void) const
 
void alphaQuantum (Quantum alpha_)
 
Quantum alphaQuantum (void) const
 
void blueQuantum (Quantum blue_)
 
Quantum blueQuantum (void) const
 
void greenQuantum (Quantum green_)
 
Quantum greenQuantum (void) const
 
void isValid (bool valid_)
 
bool isValid (void) const
 
void redQuantum (Quantum red_)
 
Quantum redQuantum (void) const
 
double intensity (void) const
 

Static Public Member Functions

static Quantum scaleDoubleToQuantum (const double double_)
 
static double scaleQuantumToDouble (const Quantum quantum_)
 
static double scaleQuantumToDouble (const double quantum_)
 

Protected Types

enum  PixelType { RGBPixel, RGBAPixel, CYMKPixel }
 

Protected Member Functions

 Color (PixelPacket *rep_, PixelType pixelType_)
 
void pixel (PixelPacket *rep_, PixelType pixelType_)
 

Protected Attributes

PixelPacket * _pixel
 

Detailed Description

Definition at line 32 of file Color.h.

Member Enumeration Documentation

enum Magick::Color::PixelType
protected
Enumerator
RGBPixel 
RGBAPixel 
CYMKPixel 

Definition at line 148 of file Color.h.

Constructor & Destructor Documentation

Magick::Color::Color ( void  )

Definition at line 69 of file Color.cpp.

Magick::Color::Color ( Quantum  red_,
Quantum  green_,
Quantum  blue_ 
)

Definition at line 78 of file Color.cpp.

References alphaQuantum(), blueQuantum(), greenQuantum(), and redQuantum().

Magick::Color::Color ( Quantum  red_,
Quantum  green_,
Quantum  blue_,
Quantum  alpha_ 
)

Definition at line 90 of file Color.cpp.

References alphaQuantum(), blueQuantum(), greenQuantum(), and redQuantum().

Magick::Color::Color ( const char *  x11color_)

Definition at line 102 of file Color.cpp.

Magick::Color::Color ( const Color color_)

Definition at line 114 of file Color.cpp.

References _pixel.

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

Definition at line 123 of file Color.cpp.

References _pixel, and RGBAPixel.

Magick::Color::Color ( const std::string &  x11color_)

Definition at line 135 of file Color.cpp.

Magick::Color::~Color ( void  )
virtual

Definition at line 147 of file Color.cpp.

Magick::Color::Color ( PixelPacket *  rep_,
PixelType  pixelType_ 
)
protected

Definition at line 261 of file Color.cpp.

Member Function Documentation

void Magick::Color::alpha ( double  alpha_)
inline

Definition at line 381 of file Color.h.

References alphaQuantum(), and scaleDoubleToQuantum().

double Magick::Color::alpha ( void  ) const
inline

Definition at line 385 of file Color.h.

void Magick::Color::alphaQuantum ( Magick::Quantum  alpha_)
inline

Definition at line 390 of file Color.h.

Magick::Quantum Magick::Color::alphaQuantum ( void  ) const
inline
void Magick::Color::blueQuantum ( Magick::Quantum  blue_)
inline

Definition at line 401 of file Color.h.

Referenced by Magick::operator<(), and Magick::operator==().

Magick::Quantum Magick::Color::blueQuantum ( void  ) const
inline

Definition at line 407 of file Color.h.

Referenced by Color(), and Magick::ColorHSL::ColorHSL().

void Magick::Color::greenQuantum ( Magick::Quantum  green_)
inline

Definition at line 412 of file Color.h.

Referenced by Magick::operator<(), and Magick::operator==().

Magick::Quantum Magick::Color::greenQuantum ( void  ) const
inline

Definition at line 418 of file Color.h.

Referenced by Color(), and Magick::ColorHSL::ColorHSL().

double Magick::Color::intensity ( void  ) const
inline

Definition at line 108 of file Color.h.

bool Magick::Color::isValid ( void  ) const

Definition at line 240 of file Color.cpp.

Magick::Color::operator PixelPacket ( ) const
Magick::Color::operator std::string ( ) const

Definition at line 217 of file Color.cpp.

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

Definition at line 161 of file Color.cpp.

References _pixel.

const Magick::Color & Magick::Color::operator= ( const char *  x11color)

Definition at line 155 of file Color.cpp.

const Magick::Color & Magick::Color::operator= ( const std::string &  x11color_)

Definition at line 191 of file Color.cpp.

References GetPPException, and ThrowPPException.

const Color& Magick::Color::operator= ( const PixelPacket &  color_)
void Magick::Color::pixel ( PixelPacket *  rep_,
PixelType  pixelType_ 
)
protected

Definition at line 269 of file Color.cpp.

void Magick::Color::redQuantum ( Magick::Quantum  red_)
inline

Definition at line 423 of file Color.h.

Referenced by Magick::operator<(), and Magick::operator==().

Magick::Quantum Magick::Color::redQuantum ( void  ) const
inline

Definition at line 429 of file Color.h.

Referenced by Color(), and Magick::ColorHSL::ColorHSL().

static Quantum Magick::Color::scaleDoubleToQuantum ( const double  double_)
inlinestatic

Definition at line 114 of file Color.h.

Referenced by alpha().

static double Magick::Color::scaleQuantumToDouble ( const Quantum  quantum_)
inlinestatic

Definition at line 121 of file Color.h.

static double Magick::Color::scaleQuantumToDouble ( const double  quantum_)
inlinestatic

Definition at line 126 of file Color.h.

Member Data Documentation

PixelPacket* Magick::Color::_pixel
protected

Definition at line 169 of file Color.h.

Referenced by Color(), and operator=().


The documentation for this class was generated from the following files: