Function WebPPictureRescale

Source
pub unsafe extern "C" fn WebPPictureRescale(
    picture: *mut WebPPicture,
    width: c_int,
    height: c_int,
) -> c_int
Expand description

Rescale a picture to new dimension width x height. If either width or height (but not both) is 0 the corresponding dimension will be calculated preserving the aspect ratio. No gamma correction is applied. Returns false in case of error (invalid parameter or insufficient memory).