InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPreflightArtworkImage.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Matt Phillips
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 
25 #include "IPMUnknown.h"
26 #include "PackageAndPreflightID.h"
27 #include "GraphicTypes.h"
28 
30 
40 {
41 public:
42  enum
43  {
47 
50  kRF_Alpha = (1L<<0)
51  };
52 
53  enum { kDefaultIID = IID_IPREFLIGHTARTWORKIMAGE };
54 
55 public:
59  virtual Int32Rect GetBounds() const = 0;
60 
66  virtual IPreflightArtworkCSInfo* QueryColorSpace() const = 0;
67 
75  virtual const uint8* GetPixelPtr(int32 channel, int32 x, int32 y) const = 0;
76 
87  virtual int32 GetPixelIncrement(int32 channel) const = 0;
88 
99  virtual int32 GetRowIncrement(int32 channel) const = 0;
100 
117  virtual const uint8* QueryChunkyScanline(int32 y) const = 0;
118 
123  virtual void ReleaseChunkyScanline(const uint8* p) const = 0;
124 
130  virtual const int32 GetChunkyPixelSize() const = 0;
131 
135  virtual void SetColorSpace(const InterfacePtr<IPreflightArtworkCSInfo>& iCS) = 0;
136 
140  virtual void SetBounds(const Int32Rect& b) = 0;
141 
145  virtual void SetSharedBuffer(void* buf) = 0;
146 
150  virtual void SetPixelIncrement(int32 inc) = 0;
151 
155  virtual void SetRowIncrement(int32 inc) = 0;
156 };
157