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

Public Types | |
| enum | { kDefaultIID = IID_IGRAPHICCHANNELINFO } |
| enum | GraphicChannelType { kPMChannelTypeUnknown = 0, kPMAlphaAssociated = 1, kPMAlphaUnassociated = 2, kPMSpotChannel = 3, kPMAlphaUnassociatedBackground = 4 } |
Public Member Functions | |
| virtual void | AddChannel (const PMString &channelName, const int32 channelID, const GraphicChannelType channelType, const int32 channelOpacity, const int32 colorSpace, const ColorArray &colorData)=0 |
| virtual void | RemoveChannel (const int32 channelIndex)=0 |
| virtual void | Clear ()=0 |
| virtual void | SetChannelName (const int32 channelIndex, const PMString &newName)=0 |
| virtual void | SetChannelID (const int32 channelIndex, const int32 newID)=0 |
| virtual void | SetChannelType (const int32 channelIndex, const GraphicChannelType newType)=0 |
| virtual void | SetChannelOpacity (const int32 channelIndex, const int32 newOpacity)=0 |
| virtual void | SetChannelColor (const int32 channelIndex, const int32 colorSpace, const ColorArray &colorData)=0 |
| virtual int32 | GetNumberChannels () const =0 |
| virtual PMString | GetNthChannelName (const int32 channelIndex) const =0 |
| virtual int32 | GetNthChannelID (const int32 channelIndex) const =0 |
| virtual GraphicChannelType | GetNthChannelType (const int32 channelIndex) const =0 |
| virtual int32 | GetNthChannelOpacity (const int32 channelIndex) const =0 |
| virtual int32 | GetNthChannelColorSpace (const int32 channelIndex) const =0 |
| virtual ColorArray | GetNthChannelColorData (const int32 channelIndex) 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 graphic channel information for placed graphics such as Photoshop (PSD) files. It is assumed that the ID of each channel is unique.
This enum represents the type of the channel. The channel info can be a mix of alpha channels and spot channels
| pure virtual |
Add a channel into the interface.
| channelName | IN a PMString containing a channel name. |
| channelID | IN a unique number that can represent the channel |
| channelType | IN the type of channel as defined by GraphicChannelType |
| channelOpacity | IN the opacity of the channel, 0 = transparent, 100 = opaque |
| colorSpace | IN the color space of the channel, i.e. kPMCsCalCMYK |
| colorData | IN the color space's color data information |
| pure virtual |
Clear all channels out of the interface.
| pure virtual |
Get the channel color space of a given channel index.
| channelIndex | IN the index (zero based) of the channel to get. |
| pure virtual |
Get the channel color space of a given channel index.
| channelIndex | IN the index (zero based) of the channel to get. |
| pure virtual |
Get the channel ID of a given channel index.
| channelIndex | IN the index (zero based) of the channel to get. |
| pure virtual |
Get the channel name of a given channel index.
| channelIndex | IN the index (zero based) of the channel to get. |
| pure virtual |
Get the channel opacity of a given channel index.
| channelIndex | IN the index (zero based) of the channel to get. |
| pure virtual |
Get the channel type of a given channel index.
| channelIndex | IN the index (zero based) of the channel to get. |
| pure virtual |
Get the number of channels currently stored in the interface. For use when iterating through the channels, setting or getting specific information.
| pure virtual |
Remove a channel from the interface.
| channelIndex | IN the index of the channel to remove. |
| pure virtual |
Set the channel color information of a given channel index.
| channelIndex | IN the index (zero based) of the channel to change. |
| colorSpace | IN the new color space to be given to the channel, i.e. kPMCsCalCMYK |
| colorData | IN the color space's color data information |
| pure virtual |
Set the channel ID of a given channel index.
| channelIndex | IN the index (zero based) of the channel to renumber. |
| newID | IN the new unique ID to be given to the channel |
| pure virtual |
Set the channel name of a given channel index.
| channelIndex | IN the index (zero based) of the channel to rename. |
| newName | IN the new name to be given to the channel |
| pure virtual |
Set the channel opacity of a given channel index.
| channelIndex | IN the index (zero based) of the channel to change. |
| newOpacity | IN the new opacity to be given to the channel. 0 = transparent, 100 = opaque |
| pure virtual |
Set the channel type of a given channel index.
| channelIndex | IN the index (zero based) of the channel to change. |
| newID | IN the new GraphicChannelType to be given to the channel |