FPDFPath_CountSegments method

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

int FPDFPath_CountSegments(FPDF_PAGEOBJECT path) {
  return _FPDFPath_CountSegments(path);
}