InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPhotoshopClippingPath Class Referenceabstract

#include <IPhotoshopClippingPath.h>

Inheritance diagram for IPhotoshopClippingPath:
IPMUnknown

Public Member Functions

virtual ErrorCode Parse (uint8 *pPathData, uint32 dataLength, PathOutlineInfo *pPolygon, const PMReal &xScaleFactor, const PMReal &yScaleFactor, const PMReal &xOffset, const PMReal &yOffset)=0
 
virtual int32 Length () const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

This interface is used to parse the '8BIM' resource generated by Photoshop and placed

in various image formats, into a PathOutlineInfo polygon.

See Also
PathOutlineInfo

Member Function Documentation

virtual int32 IPhotoshopClippingPath::Length () const
pure virtual

This method should be private. Clients have no need to call this method.

virtual ErrorCode IPhotoshopClippingPath::Parse (uint8 * pPathData,
uint32 dataLength,
PathOutlineInfopPolygon,
const PMRealxScaleFactor,
const PMRealyScaleFactor,
const PMRealxOffset,
const PMRealyOffset 
)
pure virtual

This method does all the work.

Parameters
pPathData- IN: Should be const. Pointer to the source data.
dataLength- IN: Number of bytes in source data pointed at by pPathData
pPolygon- OUT: The resulting polygon.
xScaleFactor- IN: An x scale factor to apply to each point in the path.
yScaleFactor- IN: A y scale factor to apply to each point in the path.
xOffset- IN: A horizontal offset to apply to each point in the path after the scale is applied.
yOffset- IN: A vertical offset to apply to each point in the path after the scale is applied.