Function mupdf_sys::fz_curvetoy
source · pub unsafe extern "C" fn fz_curvetoy(
ctx: *mut fz_context,
path: *mut fz_path,
x0: f32,
y0: f32,
x2: f32,
y2: f32
)
Expand description
Append a ‘curvetoy’ command to an open path. (For a cubic bezier with the second control coordinate equal to the end point).
path: The path to modify.
x0, y0: The coordinates of the first control point for the curve.
x2, y2: The end coordinates for the curve (and the second control coordinate).
Throws exceptions on failure to allocate, or attempting to modify a packed path.