![]() | InDesign SDK 20.5 |
#include <IColorData.h>

Public Types | |
| enum | { kDefaultIID = IID_ICOLORDATA } |
Public Member Functions | |
| virtual int32 | GetColorSpace () const =0 |
| virtual const ColorArray & | GetColorData () const =0 |
| virtual int32 | GetNumComponents () const =0 |
| virtual PMReal | GetNthComponent (int32 index) const =0 |
| virtual void | SetColorSpace (int32 space)=0 |
| virtual void | SetColorData (const ColorArray &componentArray)=0 |
| virtual void | SetColorData (int32 space, const ColorArray &componentArray)=0 |
| virtual bool16 | IsEqual (const IColorData *iColorData) const =0 |
| virtual void | SetConvertToHSB (bool16 convertToHSB)=0 |
| virtual bool16 | GetConvertToHSB () const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
An interface for InDesign document color data or UI color data.
| pure virtual |
Return the color array corresponding to the color space.
| pure virtual |
Return the color space. Color space can be one of kPMCsCalRGB, kPMCsCalCMYK, kPMCsLab, or kPMCsDeviceN.
| pure virtual |
Return the value of flag convertToHSB
| pure virtual |
Return nth component of the color array corresponding to the color space.
| index | the nth component starting with 0. |
| pure virtual |
Return number of color components corresponding to the color space. For kPMCsCalRGB and kPMCsLab, number of components should be 3. For kPMCsCalCMYK, number of components should be 4. For kPMCsDeviceN, number of components should match the number of inks.
| pure virtual |
Compares two color data. Returns kTrue if they are equal.
| iColorData | the color data to compare to. |
| pure virtual |
Sets the color array corresponding to the color space. Typically color space is set first before setting the color array.
| componentArray | the color array to set. |
| pure virtual |
Sets the color space and the corresponding color array.
| space | the color space to set. |
| componentArray | the color array to set. |
| pure virtual |
Sets the color space. Color space can be one of kPMCsCalRGB, kPMCsCalCMYK, kPMCsLab, or kPMCsDeviceN.
| space | the color space to set. |
| pure virtual |
Sets the value of convertToHSB flag as True if the colorspace set is HSB
| convertToHSB | bool value to set |