12using PdfColorRaw = std::array<double, 6>;
74 bool IsGrayScale()
const;
88 bool IsTransparent()
const;
105 double GetGrayScale()
const;
116 double GetRed()
const;
127 double GetGreen()
const;
138 double GetBlue()
const;
149 double GetCyan()
const;
160 double GetMagenta()
const;
171 double GetYellow()
const;
182 double GetBlack()
const;
194 PdfColor ConvertToGrayScale()
const;
237 static PdfColor CreateFromString(
const std::string_view&
name);
240 unsigned char GetComponentCount()
const {
return m_ComponentCount; }
242 const PdfColorRaw& GetRawColor()
const {
return m_RawColor; }
274 bool m_IsTransparent;
276 unsigned char m_ComponentCount;
277 PdfColorRaw m_RawColor;
This class represents a PdfArray Use it for all arrays that are written to a PDF file.
Definition PdfArray.h:79
A color object can represent either a grayscale value, a RGB color, a CMYK color.
Definition PdfColor.h:21
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:94
This class represents a PDF indirect Object in memory.
Definition PdfObject.h:33
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:35
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:357