GetPageElementClipPathSegmentKind

Content stream editing, Clipping paths

Description

Returns the normalised command kind for one retained clipping-path segment

Syntax

Delphi

Function TPDFlib.GetPageElementClipPathSegmentKind(ElementID, ClipPathIndex, SegmentIndex: Integer): Integer;

Parameters

ElementIDOpaque page-element handle
ClipPathIndex1-based clipping component index
SegmentIndex1-based segment index

Return values

0The handle or index is invalid
1Move to
2Line to
3Cubic Bézier curve
4Close subpath

Remarks

Rectangle operators are expanded to move, line and close commands, while v and y curves are normalised to explicit cubic control points

Open subpaths are implicitly closed when the clipping fill rule is evaluated