InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ImageTypes.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: jargast
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 
24 #ifndef __ImageTypes__
25 #define __ImageTypes__
26 
27 #include "PMTypes.h"
28 
29 
30 // We need to guarantee all structures here are packed the same.
31 // For Win32 we will force it to 1-byte alignment.
32 #ifdef WIN32
33 #endif
34 
38 enum
39 {
40  kPMGrayColorSpace = 0x00000001, // 0 black, 1 white. Primary channels = 1
41  kPMRGBColorSpace = 0x00000002, // Primary channels = 3
42  kPMCMYKColorSpace = 0x00000004, // Primary channels = 4
43  kPMICCLabColorSpace = 0x00000008, // maps a and b from -128/127 to 0/255. Primary channels = 3
44  //kPMDuotoneColorSpace = 0x00000010, // Primary channels = ?
45  kPM1InkColorSpace = 0x00000020, // Unknown color space consisting of 1 ink
46  kPM2InkColorSpace = 0x00000040, // Unknown color space consisting of 2 inks
47  kPM3InkColorSpace = 0x00000080, // Unknown color space consisting of 3 inks
48  kPM4InkColorSpace = 0x00000100, // Unknown color space consisting of 4 inks
49  kPM5InkColorSpace = 0x00000200, // Unknown color space consisting of 5 inks
50  kPM6InkColorSpace = 0x00000400, // Unknown color space consisting of 6 inks
51  kPM7InkColorSpace = 0x00000800, // Unknown color space consisting of 7 inks
52  kPM8InkColorSpace = 0x00001000 // Unknown color space consisting of 8 inks
53 };
54 
55 const uint32 kPMNumberOfColorSpaces = 13;
56 
57 // Maximum number of channels we support is 8;
58 const uint32 kPMMaxChannels = 8;
59 
63 enum
64 {
65  kPMChunky = 1,
66  kPMPlanar = 2
67 };
68 
72 enum
73 {
74  kPMAlphaAssociated = 1, // alpha is pre-multiplied into the color values and is used as a transparency mask
75  kPMAlphaUnassociated = 2, // alpha is not pre-multiplied and is not used as transparency
76  kPMSpotChannel = 3, // spot channel
77  kPMAlphaUnassociatedBackground = 4 // alpha is unassociated, yet used as transparency mask
78 };
79 enum
83 {
84  kPMAlphaPackingPreOrder = 1, // e.g., ACMYK, ARGB, etc. May not be supported by write filters.
85  kPMAlphaPackingPostOrder = 2 // e.g., CMYKA, RGBA, etc. Preferred packing.
86 };
87 
88 // kPMFormatOptionSetImage
89 //
90 enum
91 {
92  kPMLowResImage = 1, // NOTE: A High res image can exist without a
93  kPMHighResImage = 2 // low res image but not vice versa.
94 };
95 
96 
97 // The application type code
98 #define kPSApplicationCode '8BIM'
99 
100 
101 // We need to guarantee all structures here are packed the same.
102 // For Win32 we will force it to 1-byte alignment.
103 #ifdef WIN32
104 #endif
105 
106 #endif