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