Function mupdf_sys::fz_rectto

source ·
pub unsafe extern "C" fn fz_rectto(
    ctx: *mut fz_context,
    path: *mut fz_path,
    x0: f32,
    y0: f32,
    x1: f32,
    y1: f32
)
Expand description

Append a ‘rectto’ command to an open path.

The rectangle is equivalent to: moveto x0 y0 lineto x1 y0 lineto x1 y1 lineto x0 y1 closepath

path: The path to modify.

x0, y0: First corner of the rectangle.

x1, y1: Second corner of the rectangle.

Throws exceptions on failure to allocate, or attempting to modify a packed path.