FPDFPath_CountSegments function

  1. @Native<FPDF_BOOL Function(FPDF_PAGEOBJECT)>(FPDF_PAGEOBJECT)>()
int FPDFPath_CountSegments(
  1. FPDF_PAGEOBJECT path
)

Get number of segments inside |path|.

path - handle to a path.

A segment is a command, created by e.g. FPDFPath_MoveTo(), FPDFPath_LineTo() or FPDFPath_BezierTo().

Returns the number of objects in |path| or -1 on failure.

Implementation

@ffi.Native<ffi.Int Function(FPDF_PAGEOBJECT)>()
external int FPDFPath_CountSegments(FPDF_PAGEOBJECT path);