12using PdfColorRaw = std::array<double, 6>;
68 bool IsGrayScale()
const;
80 bool IsTransparent()
const;
95 double GetGrayScale()
const;
105 double GetRed()
const;
115 double GetGreen()
const;
125 double GetBlue()
const;
135 double GetCyan()
const;
145 double GetMagenta()
const;
155 double GetYellow()
const;
165 double GetBlack()
const;
176 PdfColor ConvertToGrayScale()
const;
215 static PdfColor CreateFromString(
const std::string_view&
name);
218 unsigned char GetComponentCount()
const {
return m_ComponentCount; }
220 const PdfColorRaw& GetRawColor()
const {
return m_RawColor; }
249 bool m_IsTransparent;
251 unsigned char m_ComponentCount;
252 PdfColorRaw m_RawColor;
This class represents a PdfArray Use it for all arrays that are written to a PDF file.
Definition PdfArray.h:76
A color object can represent either a grayscale value, a RGB color, a CMYK color.
Definition PdfColor.h:20
PdfColor & operator=(const PdfColor &rhs)=default
Assignment operator.
PdfColor(const PdfColor &rhs)=default
Copy constructor.
PdfColorSpaceType GetColorSpace() const
Get the colorspace of this PdfColor object.
Definition PdfColor.h:85
This class represents a PDF indirect Object in memory.
Definition PdfObject.h:31
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:30
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13
PdfColorSpaceType
Enum for the colorspaces supported by PDF.
Definition PdfDeclarations.h:333