InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
IGraphicChannelInfo.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: David Berggren
6
//
7
// $Author$
8
//
9
// $DateTime$
10
//
11
// $Revision$
12
//
13
// $Change$
14
//
15
// Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16
//
17
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18
// with the terms of the Adobe license agreement accompanying it. If you have received
19
// this file from a source other than Adobe, then your use, modification, or
20
// distribution of it requires the prior written permission of Adobe.
21
//
22
//
23
// Purpose:
24
// Stores info about channels read in from a placed graphic (i.e. PSD or AI file)
25
// Assumes channel names are unique
26
//
27
//========================================================================================
28
29
#ifndef __IGraphicChannelInfo__
30
#define __IGraphicChannelInfo__
31
32
#include "IPMUnknown.h"
33
#include "IColorData.h"
34
#include "ImageID.h"
35
#include "PMString.h"
36
42
class
IGraphicChannelInfo
:
public
IPMUnknown
43
{
44
public
:
45
enum
{ kDefaultIID = IID_IGRAPHICCHANNELINFO };
46
52
typedef
enum
53
{
56
kPMChannelTypeUnknown
= 0,
57
61
kPMAlphaAssociated
= 1,
62
66
kPMAlphaUnassociated
= 2,
67
70
kPMSpotChannel
= 3,
71
76
kPMAlphaUnassociatedBackground
= 4
77
}
GraphicChannelType
;
78
79
// ***********************
80
// Add/Remove methods
81
// ***********************
82
91
virtual
void
AddChannel
(
const
PMString
& channelName,
92
const
int32 channelID,
93
const
GraphicChannelType
channelType,
94
const
int32 channelOpacity,
95
const
int32 colorSpace,
96
const
ColorArray
& colorData
97
) = 0;
98
102
virtual
void
RemoveChannel
(
const
int32 channelIndex ) = 0;
103
106
virtual
void
Clear
() = 0;
107
108
// ***********************
109
// Set methods
110
// ***********************
111
116
virtual
void
SetChannelName
(
const
int32 channelIndex,
const
PMString
& newName) = 0;
117
122
virtual
void
SetChannelID
(
const
int32 channelIndex,
const
int32 newID) = 0;
123
128
virtual
void
SetChannelType
(
const
int32 channelIndex,
const
GraphicChannelType
newType) = 0;
129
134
virtual
void
SetChannelOpacity
(
const
int32 channelIndex,
const
int32 newOpacity) = 0;
135
141
virtual
void
SetChannelColor
(
const
int32 channelIndex,
const
int32 colorSpace,
const
ColorArray
& colorData) = 0;
142
143
// ***********************
144
// Get methods
145
// ***********************
146
151
virtual
int32
GetNumberChannels
()
const
= 0;
152
157
virtual
PMString
GetNthChannelName
(
const
int32 channelIndex)
const
= 0;
162
virtual
int32
GetNthChannelID
(
const
int32 channelIndex)
const
= 0;
167
virtual
GraphicChannelType
GetNthChannelType
(
const
int32 channelIndex)
const
= 0;
172
virtual
int32
GetNthChannelOpacity
(
const
int32 channelIndex)
const
= 0;
177
virtual
int32
GetNthChannelColorSpace
(
const
int32 channelIndex)
const
= 0;
182
virtual
ColorArray
GetNthChannelColorData
(
const
int32 channelIndex)
const
= 0;
183
184
};
185
186
#endif
tmpdoxygeninput
IGraphicChannelInfo.h
Generated on Sat Jul 19 2025 02:54:13 for InDesign SDK by
1.8.3.1