#include <PdfColor.h>
Public Member Functions | |
PdfColor () | |
PdfColor (double dGray) | |
PdfColor (double dRed, double dGreen, double dBlue) | |
PdfColor (double dCyan, double dMagenta, double dYellow, double dBlack) | |
PdfColor (const PdfColor &rhs) | |
virtual | ~PdfColor () |
const PdfColor & | operator= (const PdfColor &rhs) |
bool | operator== (const PdfColor &rhs) const |
bool | operator!= (const PdfColor &rhs) const |
bool | IsGrayScale () const |
bool | IsRGB () const |
bool | IsCMYK () const |
bool | IsSeparation () const |
bool | IsCieLab () const |
EPdfColorSpace | GetColorSpace () const |
EPdfColorSpace | GetAlternateColorSpace () const |
double | GetGrayScale () const |
double | GetRed () const |
double | GetGreen () const |
double | GetBlue () const |
double | GetCyan () const |
double | GetMagenta () const |
double | GetYellow () const |
double | GetBlack () const |
const std::string | GetName () const |
double | GetDensity () const |
double | GetCieL () const |
double | GetCieA () const |
double | GetCieB () const |
PdfColor | ConvertToGrayScale () const |
PdfColor | ConvertToRGB () const |
PdfColor | ConvertToCMYK () const |
PdfArray | ToArray () const |
PdfObject * | BuildColorSpace (PdfVecObjects *pOwner) const |
Static Public Member Functions | |
PdfColor | FromString (const char *pszName) |
PdfColor | FromArray (const PdfArray &rArray) |
EPdfColorSpace | GetColorSpaceForName (const PdfName &rName) |
PdfName | GetNameForColorSpace (EPdfColorSpace eColorSpace) |
All drawing functions in PoDoFo accept a PdfColor object to specify a drawing color in one of these colorspaces.
Derived classes PdfColorGray, PdfColorRGB, PdfColorCMYK, PdfColorSeparation and PdfColorCieLab are available for easy construction
|
Create a PdfColor object that is RGB black. |
|
Create a new PdfColor object with a grayscale value.
|
|
Create a new PdfColor object with a RGB color
|
|
Create a new PdfColor object with a CMYK color
|
|
Copy constructor
|
|
Destructor |
|
Creates a colorspace object from a color to insert into resources.
|
|
Converts the color object into a CMYK color object. This is only a convinience function. It might be useful for on screen display but is in NO WAY suitable to professional printing!
|
|
Converts the color object into a grayscale color object. This is only a convinience function. It might be useful for on screen display but is in NO WAY suitable to professional printing!
|
|
Converts the color object into a RGB color object. This is only a convinience function. It might be useful for on screen display but is in NO WAY suitable to professional printing!
|
|
Creates a color object from a PdfArray which represents a color. Raises an exception if this is no PdfColor!
|
|
Creates a color object from a string.
|
|
Get the alternate colorspace of this PdfColor object
|
|
Get the black color value of this object. Throws an exception if this is no CMYK or separation color object.
|
|
Get the blue color value of this object. Throws an exception if this is no RGB color object.
|
|
Get the A color value of this object. Throws an exception if this is no CIE-Lab color object.
|
|
Get the B color value of this object. Throws an exception if this is no CIE-Lab color object.
|
|
Get the L color value of this object. Throws an exception if this is no CIE-Lab color object.
|
|
Get the colorspace of this PdfColor object
|
|
Convert a name into a colorspace enum.
|
|
Get the cyan color value of this object. Throws an exception if this is no CMYK or separation color object.
|
|
Get the density color value of this object. Throws an exception if this is no separation color object.
|
|
Get the grayscale color value of this object. Throws an exception if this is no grayscale color object.
|
|
Get the green color value of this object. Throws an exception if this is no RGB color object.
|
|
Get the magenta color value of this object. Throws an exception if this is no CMYK or separation color object.
|
|
Get the separation name of this object. Throws an exception if this is no separation color object.
|
|
Convert a colorspace enum value into a name such as DeviceRGB
|
|
Get the red color value of this object. Throws an exception if this is no RGB color object.
|
|
Get the yellow color value of this object. Throws an exception if this is no CMYK or separation color object.
|
|
Test if this is a CIE-Lab color.
|
|
Test if this is a CMYK color.
|
|
Test if this is a grayscale color.
|
|
Test if this is a RGB color.
|
|
Test if this is a separation color.
|
|
Test for inequality of colors.
|
|
Assignment operator
|
|
Test for equality of colors.
|
|
Creates a PdfArray which represents a color from a color.
|