InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IImageStreamManager.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 __IImageStreamManager__
25 #define __IImageStreamManager__
26 
27 #include "IPMUnknown.h"
28 #include "BravoForwardDecl.h"
29 #include "IGraphicsPort.h"
30 
31 #include "ImageID.h"
32 
33 class IImageStream;
34 class IImageAttributes;
35 class ICMSProfile;
36 class IDocument;
37 
62 {
63 public:
64  enum { kDefaultIID = IID_IIMAGESTREAMMANAGER };
65 
72  virtual void SetSourceAttributes(IImageAttributes* srcImageAttributes) = 0;
73 
80  virtual void SetDestinationAttributes(IImageAttributes* dstImageAttributes) = 0;
81 
89  virtual void SetFirstImageStreamSegment(IImageStream* firstImageStreamSegment) = 0;
90 
97  {
98  kSubsample, // Default (anti-aliasing off). Fast, lowest quality
99  kDownsample, // Averaging sample (anti-aliasing on). Slower, better quality
100  kBicubicDownsample, // Weighted average sample. Slowest, best quality
101  kSubAverage // Hybrid of kSubsample and kDownsample. Better quality than kSubsample but much faster than kDownsample
102  };
103 
113  virtual void SetResamplingType(ResamplingType resample) = 0;
114 
125  virtual void SetCache(uint8* cacheptr) = 0;
126 
133  virtual void SetDoDiffusion(bool16 yesno) = 0;
134 
141  virtual void SetGrayThreshold(uint8 threshold) = 0;
142 
150  virtual void SetReadAlphaChannelOnly(uint16 channelIndex) = 0;
151 
170  virtual void SetWhiteIsZeroForPlanarChannels(bool16 yesno) = 0;
171 
184  virtual void SetSourceProfile(IPMUnknown *ownerItem) = 0;
185 
191  virtual void SetSourceProfile(ICMSProfile *srcProfile) = 0;
192 
198  virtual void SetSourceAGMColorSpace(AGMColorSpace *srcAGMColorSpace) = 0;
199 
212  virtual void SetDestinationProfile(IPMUnknown *ownerItem) = 0;
213 
219  virtual void SetDestinationProfile(ICMSProfile *dstProfile) = 0;
220 
226  virtual void SetDestinationAGMColorSpace(AGMColorSpace *dstAGMColorSpace) = 0;
227 
237  virtual uint32 GetNumberOfTasks() = 0;
238 
251  virtual IImageStream *QueryImageStream() = 0;
252 
261  virtual void SetReadSingleChannelOnly(uint16 channelIndex) = 0;
262 
276  virtual void SetColorConvertOptions
277  (
278  AGMColorProfile* defRGBProfile,
279  AGMColorProfile* defCMYKProfile,
280  bool32 idealizedBlack,
281  bool32 oppBlending,
282  bool32 fastXforms,
284  ) = 0;
285 
291  virtual void SetColorConvertOptions(void* opts, IGraphicsPort::RenderingIntent defaultRI) = 0;
292 };
293 
294 #endif