GetPageElementClipPathSegmentCoordinate

Content stream editing, Clipping paths

Description

Returns one coordinate from a normalised clipping-path segment in default user space

Syntax

Delphi

Function TPDFlib.GetPageElementClipPathSegmentCoordinate(ElementID, ClipPathIndex, SegmentIndex, CoordinateIndex: Integer): Double;

Parameters

ElementIDOpaque page-element handle
ClipPathIndex1-based clipping component index
SegmentIndex1-based segment index
CoordinateIndex0 control 1 x, 1 control 1 y, 2 control 2 x, 3 control 2 y, 4 endpoint x, 5 endpoint y

Return value

The requested coordinate, or zero for an invalid handle, index or selector

Remarks

Move, line and close commands use only endpoint selectors 4 and 5; unused control coordinates are zero

Coordinates already include the current transformation matrix active when the path command was executed