[][src]Function mupdf_sys::fz_irect_from_rect

pub unsafe extern "C" fn fz_irect_from_rect(rect: fz_rect) -> fz_irect

Convert a rect into the minimal bounding box that covers the rectangle.

Coordinates in a bounding box are integers, so rounding of the rects coordinates takes place. The top left corner is rounded upwards and left while the bottom right corner is rounded downwards and to the right.