FPDFPath_LineTo function

  1. @Native<FPDF_BOOL Function(FPDF_PAGEOBJECT, Float, Float)>(FPDF_PAGEOBJECT, ffi.Float, ffi.Float)>()
int FPDFPath_LineTo(
  1. FPDF_PAGEOBJECT path,
  2. double x,
  3. double y
)

Add a line between the current point and a new point in the path.

path - the handle to the path object. x - the horizontal position of the new point. y - the vertical position of the new point.

The path's current point is changed to (x, y).

Returns TRUE on success

Implementation

@ffi.Native<FPDF_BOOL Function(FPDF_PAGEOBJECT, ffi.Float, ffi.Float)>()
external int FPDFPath_LineTo(FPDF_PAGEOBJECT path, double x, double y);