InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPhotoshopClippingPath.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: dstephen
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 // Description: This Interface was designed for the purpose of exposing the TIFFClippingPath
24 // code from the Image plugin. Photoshop images have a series of '8BIM' records/resources
25 // stored in different places depending on the image type. Once located and decoded using
26 // ConvertPSResourcesToPMTags(), the result can be passed to the TIFFClippingPath implementation
27 // to create a polygon.
28 //
29 //========================================================================================
30 
31 #ifndef __IClippingPath__
32 #define __IClippingPath__
33 
34 #include "IPMUnknown.h"
35 
36 class PathOutlineInfo;
37 
43 {
44 public:
54  virtual ErrorCode Parse (uint8* pPathData,
55  uint32 dataLength,
56  PathOutlineInfo *pPolygon,
57  const PMReal& xScaleFactor,
58  const PMReal& yScaleFactor,
59  const PMReal& xOffset,
60  const PMReal& yOffset) = 0;
61 
64  virtual int32 Length() const = 0;
65 };
66 
67 #endif