FPDFClipPath_GetPathSegment method

FPDF_PATHSEGMENT FPDFClipPath_GetPathSegment(
  1. FPDF_CLIPPATH clip_path,
  2. int path_index,
  3. int segment_index
)

Experimental API. Get segment in one specific path of |clip_path| at index.

clip_path - handle to a clip_path. path_index - the index of a path. segment_index - the index of a segment.

Returns the handle to the segment, or NULL on failure. The caller does not take ownership of the returned FPDF_PATHSEGMENT. Instead, it remains valid until FPDF_ClosePage() is called for the page containing |clip_path|.

Implementation

FPDF_PATHSEGMENT FPDFClipPath_GetPathSegment(FPDF_CLIPPATH clip_path,
int path_index,
int segment_index,
) {
  return _FPDFClipPath_GetPathSegment(clip_path,
path_index,
segment_index,
);
}