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

Public Types | |
| enum | { kDefaultIID = IID_IDUOTONEINFO } |
Public Member Functions | |
| virtual void | AppendDuotoneInk (const PMString &inkName, int32 colorSpace, const ColorArray &colorData, uint8 *clut)=0 |
| virtual void | RemoveInk (uint32 index)=0 |
| virtual void | Clear ()=0 |
| virtual void | SetInkName (uint32 index, const PMString &newName)=0 |
| virtual void | SetInkColor (uint32 index, int32 colorSpace, const ColorArray &colorData)=0 |
| virtual void | SetInkCLUT (uint32 index, uint8 *clut)=0 |
| virtual uint32 | GetNumberInks () const =0 |
| virtual PMString | GetNthInkName (uint32 index) const =0 |
| virtual int32 | GetNthInkColorSpace (uint32 index) const =0 |
| virtual ColorArray | GetNthInkColorData (uint32 index) const =0 |
| virtual ErrorCode | GetNthInkCLUT (uint32 index, uint8 *clut) 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 holding the duotone ink information for placed graphics such as Photoshop (PSD) files.
| pure virtual |
Append an ink into the interface.
| inkName | IN a PMString containing a ink name. |
| colorSpace | IN the color space of the ink, i.e. kPMCsCalCMYK |
| colorData | IN the color space's color data information |
| clut | IN a pointer to a 256 byte array containing the inks CLUT. The information is copied out of the CLUT that is passed in. |
| pure virtual |
Clear all inks out of the interface.
| pure virtual |
Get the ink CLUT of a given ink index.
| index | IN the index (0 based) of the ink to get. |
| clut | OUT a pointer to a 256 byte array to recieve CLUT values. |
| pure virtual |
Get the ink color data of a given ink index.
| index | IN the index (0 based) of the ink to get. |
| pure virtual |
Get the ink color space of a given ink index.
| index | IN the index (0 based) of the ink to get. |
| pure virtual |
Get the ink name of a given ink index.
| index | IN the index (0 based) of the ink to get. |
| pure virtual |
Get the number of inks currently stored in the interface. For use when iterating through the inks, setting or getting specific information. 1 ink == Monotone image, 2 inks == Duotone image, 3 inks == Tritone image, 4 inks == Quadtone image.
| pure virtual |
Remove a ink from the interface.
| index | IN the index (0 based) of the ink to remove. |
| pure virtual |
Set the ink CLUT information of a given ink index.
| index | IN the index (0 based) of the ink to change. |
| clut | IN a pointer to an array of 256 entries ranging from 0x00 to 0xFF. The CLUT data is copied out of the array that is passed in. |
| pure virtual |
Set the ink color information of a given ink index.
| index | IN the index (0 based) of the ink to change. |
| colorSpace | IN the new color space to be given to the ink, i.e. kPMCsCalCMYK |
| colorData | IN the color space's color data information |
| pure virtual |
Set the ink name of a given ink index.
| index | IN the index (0 based) of the ink to rename. |
| newName | IN the new name to be given to the ink |