![]() | InDesign SDK 20.5 |
#include <IClippingPathSuite.h>

Public Types | |
| enum | { kDefaultIID = IID_ICLIPPINGPATHSUITE } |
| enum | { kInvertFlag = 1 << 0, kUseHighResFlag = 1 << 1, kAllowHolesFlag = 1 << 2, kRestrictToFrameFlag = 1 << 3 } |
Public Member Functions | |
| virtual bool16 | CanHaveClippingPath (void) const =0 |
| virtual bool16 | HasAlphaChannels (void) const =0 |
| virtual bool16 | HasPhotoshopPaths (void) const =0 |
| virtual bool16 | HasHighResRaster (void) const =0 |
| virtual bool16 | CanConvertClippingToFrame (void) const =0 |
| virtual IClipSettings * | QueryActiveClipSettings (void) const =0 |
| virtual IPathGeometry * | QueryActiveClippingPath (void) const =0 |
| virtual ErrorCode | ApplyEmbeddedPath (uint16 index, const PMString *pathName, const PMReal &tolerance, const PMReal &minPathSize, const PMReal &inset, uint32 flags) const =0 |
| virtual ErrorCode | ApplyAlphaChannel (uint16 index, const PMReal &tolerance, const PMReal &minPathSize, const PMReal &inset, uint32 flags, uint8 threshhold) const =0 |
| virtual ErrorCode | DoDetectEdges (const PMReal &tolerance, const PMReal &minPathSize, const PMReal &inset, uint32 flags, uint8 threshhold) const =0 |
| virtual ErrorCode | RemoveClipping (void) const =0 |
| virtual ErrorCode | DoConvertClippingToFrame (void) const =0 |
| virtual ErrorCode | ApplyUserPathOptions (bool8 bInvert, const PMReal &inset) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
The IClippingPathSuite is used to obtain clipping path information about the current selection and to apply clipping paths to the current selection. As an alternative to clipping paths, you might consider creating a soft mask in Photoshop because InDesign supports native transparency within Photoshop images.
| anonymous enum |
Default IID
| anonymous enum |
Flags
| pure virtual |
Perform edge detection on a given alpha channel.
| index | |
| tolerance | - a tolerance value specifying how close to the original path we must be if we smooth the path. 0.0 indicates a perfect match. Smoothing may simplify the path, reducing the number of points. |
| minPathSize | - subpaths smaller than the minPathSize will be deleted. |
| inset | - how far to inset the path. Negative values cause an outset. |
| flags | - see the enum at the top of this class. |
| threshhold | - The threshhold is a value between 0 and 255. Any gray value greater than or equal to the threshold will be mapped to white. All other pixels will be mapped to black. |
| pure virtual |
–— ManipulatorsProcess commands to clip the selection.Apply an embedded photoshop clipping path
| index | |
| *pathName | IN - the name of the clipping path |
| tolerance | - a tolerance value specifying how close to the original path we must be if we smooth the path. 0.0 indicates a perfect match. Smoothing may simplify the path, reducing the number of points. |
| minPathSize | - subpaths smaller than the minPathSize will be deleted. |
| inset | - how far to inset the path. Negative values cause an outset. |
| flags | - see the enum at the top of this class. |
| pure virtual |
Invert or un-invert the current clipping. Change the inset amount.
| bInvert | - If true, then invert the current clipping. Otherwise, remove any inversion if it exists. |
| inset | - how far to inset the path. Negative values cause an outset. |
| pure virtual |
Does the selection have a clipping path and a containing frame such that the points on the frame can be made to match the clipping path?
| void |
| pure virtual |
–— AbilitiesDoes the selection support clipping paths? Return kTrue or kFalse.
| void |
| pure virtual |
Process commands to convert the clipping path to the frame – and delete the original clipping path. The result matches the behavior of InDesign 1.5, which did not have separate clipping paths.
| void |
| pure virtual |
Convert the image to grayscale and then to 1-bit using the threshhold to determine which gray values will be black and which gray values will be white. Then perform edge detection on the resulting 1-bit image to create a clipping path.
| tolerance | - a tolerance value specifying how close to the original path we must be if we smooth the path. 0.0 indicates a perfect match. Smoothing may simplify the path, reducing the number of points. |
| minPathSize | - subpaths smaller than the minPathSize will be deleted. |
| inset | - how far to inset the path. Negative values cause an outset. |
| flags | - see the enum at the top of this class. |
| threshhold |
| pure virtual |
Does the selection have any alpha channels?
| void |
| pure virtual |
Vector graphics, such as EPS and PDF, do not have a high res raster from which to perform edge detection. Hence, if performing edge detection, the proxy must be used.
| void |
| pure virtual |
Does the selection have any embedded Photoshop paths?
| void |
| pure virtual |
Return an AddRefed pointer to the IPathGeometry representing the current clipping path. If no clipping currently exists, then nil is returned.
| void |
| pure virtual |
–— AccessorsReturn a pointer to the active IClipSettings. If a clippable page item is selected, return its IClipSettings. Else if a document is open, return its IClipSettings. Else return the Session's IClipSettings.
| void |
| pure virtual |
Remove any existing clipping path such that the image's graphic frame is the only thing which could be clipping the image.
| void |