5 #ifndef PDFTRON_H_CPPPDFColorSpace
6 #define PDFTRON_H_CPPPDFColorSpace
8 #include <C/PDF/TRN_ColorSpace.h>
33 explicit ColorPt(
double x = 0,
double y = 0,
double z = 0,
double w = 0);
55 void Set(
double x = 0,
double y = 0,
double z = 0,
double w = 0);
84 void Set(
int colorant_index,
double colorant_value);
99 double Get(
int colorant_index)
const;
258 void InitComponentRanges(std::vector<double>& out_decode_low, std::vector<double>& out_decode_range);
392 TRN_ColorSpace mp_cs;
398 #include <Impl/ColorSpace.inl>
ColorPt GetBaseColor(UChar color_idx)
void Set(double x=0, double y=0, double z=0, double w=0)
void InitColor(ColorPt &out_colorants)
ColorPt Convert2RGB(const ColorPt &in_color)
ColorSpace & operator=(const ColorSpace &c)
static ColorSpace CreateICC(SDF::SDFDoc &doc, const UString &filepath)
void SetColorantNum(int num)
const UChar * GetLookupTable()
ColorSpace GetBaseColorSpace()
ColorSpace(SDF::Obj color_space=0)
ColorPt Convert2CMYK(const ColorPt &in_color)
ColorPt & operator=(const ColorPt &co)
static ColorSpace CreateDeviceGray()
ColorSpace GetAlternateColorSpace()
ColorPt(double x=0, double y=0, double z=0, double w=0)
static ColorSpace CreatePattern()
bool operator==(const ColorPt &co) const
static ColorSpace CreateDeviceCMYK()
double Get(int colorant_index) const
void InitComponentRanges(std::vector< double > &out_decode_low, std::vector< double > &out_decode_range)
ColorPt Convert2Gray(const ColorPt &in_color)
Function GetTintFunction()
static ColorSpace CreateDeviceRGB()