InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IImageWriteFormatInfo.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 __IImageWriteFormatInfo__
25 #define __IImageWriteFormatInfo__
26 
27 #include "IPMUnknown.h"
28 #include "IDocument.h"
29 
30 const uint32 kMaxNumberOfBitDepths = 8;
32 typedef struct {
33  uint8 supportPlanar; // kPMChunky and/or kPMPlanar
34  uint8 supportNumberOfIndexedBitDepths; // Could be zero
35  uint8 supportIndexedBitDepths[kMaxNumberOfBitDepths]; // The index bitdepths
36  uint8 supportNumberOfBitDepths;
37  uint8 supportBitDepths[kMaxNumberOfBitDepths]; // pixel bitdepths
38  uint8 supportMaxIndexedChannels; // Some formats might not support extra channels for indexed images
39  uint8 supportMaxChannels; // default is 3 for rgb, 4 for cmyk, etc.
40  uint8 supportMaxLayers; // default is 1.
42 
43 
44 
45 class PMString;
46 class IImageAttributes;
47 
55 {
56 public:
63  virtual OSType GetFileType() = 0;
64 
71  virtual OSType GetCreator() = 0;
72 
79  virtual void GetExtension(PMString* extension) = 0;
80 
86  virtual void GetFormatName(PMString* formatName) = 0;
87 
97  virtual bool16 GetImageColorSpaceSupportInfo (uint32 colorSpace, ImageColorSpaceSupportInfo* supportInfo) = 0;
98 
104  virtual uint32 GetMaxWidth() = 0;
105 
111  virtual uint32 GetMaxHeight() = 0;
112 
124  virtual bool16 CanWriteAll(IImageAttributes* iImageAttributes) = 0;
125 
143  virtual WidgetID GetPreferencesPanel() = 0;
144 
145 };
146 
147 #endif