Function mupdf_sys::fz_gridfit_matrix[][src]

pub unsafe extern "C" fn fz_gridfit_matrix(
    as_tiled: c_int,
    m: fz_matrix
) -> fz_matrix

Grid fit a matrix.

as_tiled = 0 => adjust the matrix so that the image of the unit square completely covers any pixel that was touched by the image of the unit square under the original matrix.

as_tiled = 1 => adjust the matrix so that the corners of the image of the unit square align with the closest integer corner of the image of the unit square under the original matrix.