FPDFClipPath_GetPathSegment function
- @Native<FPDF_PATHSEGMENT Function(FPDF_CLIPPATH, Int, Int)>(FPDF_CLIPPATH, ffi.Int, ffi.Int)>()
- FPDF_CLIPPATH clip_path,
- int path_index,
- 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
@ffi.Native<FPDF_PATHSEGMENT Function(FPDF_CLIPPATH, ffi.Int, ffi.Int)>()
external FPDF_PATHSEGMENT FPDFClipPath_GetPathSegment(
FPDF_CLIPPATH clip_path,
int path_index,
int segment_index,
);