GetPageElementClipPathSegmentKind
Content stream editing, Clipping paths
Description
Returns the normalized command kind for one retained clipping-path segment
Syntax
Delphi
Function TPDFlib.GetPageElementClipPathSegmentKind(ElementID, ClipPathIndex, SegmentIndex: Integer): Integer;Parameters
| ElementID | Opaque page-element handle |
|---|---|
| ClipPathIndex | 1-based clipping component index |
| SegmentIndex | 1-based segment index |
Return values
| 0 | The handle or index is invalid |
|---|---|
| 1 | Move to |
| 2 | Line to |
| 3 | Cubic Bézier curve |
| 4 | Close subpath |
Remarks
Rectangle operators are expanded to move, line and close commands, while v and y curves are normalized to explicit cubic control points
Open subpaths are implicitly closed when the clipping fill rule is evaluated