Magick++
6.9.3
|
#include <Color.h>
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) |
Color & | operator= (const Color &color_) |
const Color & | operator= (const char *x11color) |
const Color & | operator= (const std::string &x11color_) |
const Color & | operator= (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 |
|
protected |
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 Color & | color_ | ) |
Magick::Color::Color | ( | const PixelPacket & | color_ | ) |
|
protected |
|
inline |
Definition at line 381 of file Color.h.
References alphaQuantum(), and scaleDoubleToQuantum().
|
inline |
|
inline |
Definition at line 396 of file Color.h.
Referenced by alpha(), Color(), Magick::ColorGray::ColorGray(), Magick::ColorHSL::ColorHSL(), Magick::ColorMono::ColorMono(), Magick::ColorRGB::ColorRGB(), and Magick::ColorYUV::ColorYUV().
|
inline |
Definition at line 401 of file Color.h.
Referenced by Magick::operator<(), and Magick::operator==().
|
inline |
Definition at line 407 of file Color.h.
Referenced by Color(), and Magick::ColorHSL::ColorHSL().
|
inline |
Definition at line 412 of file Color.h.
Referenced by Magick::operator<(), and Magick::operator==().
|
inline |
Definition at line 418 of file Color.h.
Referenced by Color(), and Magick::ColorHSL::ColorHSL().
void Magick::Color::isValid | ( | bool | valid_ | ) |
Definition at line 245 of file Color.cpp.
Referenced by Magick::Image::backgroundColor(), Magick::Image::borderColor(), Magick::Image::colorize(), Magick::Image::colorMap(), Magick::Image::matteColor(), Magick::Image::opaque(), Magick::operator==(), Magick::Image::transparent(), and Magick::Image::transparentChroma().
Magick::Color::operator PixelPacket | ( | ) | const |
Magick::Color & Magick::Color::operator= | ( | const Color & | color_ | ) |
const Magick::Color & Magick::Color::operator= | ( | const char * | x11color | ) |
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_ | ) |
|
protected |
|
inline |
Definition at line 423 of file Color.h.
Referenced by Magick::operator<(), and Magick::operator==().
|
inline |
Definition at line 429 of file Color.h.
Referenced by Color(), and Magick::ColorHSL::ColorHSL().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
protected |
Definition at line 169 of file Color.h.
Referenced by Color(), and operator=().