Function resize

pub fn resize<I: GenericImageView>(image: &I, nwidth: u32, nheight: u32, filter: FilterType) -> ImageBuffer<I::Pixel, Vec<<I::Pixel as Pixel>::Subpixel>>
where
    I::Pixel: 'static,
    <I::Pixel as Pixel>::Subpixel: 'static,

Resize the supplied image to the specified dimensions.

Arguments:

This method assumes alpha pre-multiplication for images that contain non-constant alpha.

This method typically assumes that the input is scene-linear light. If it is not, color distortion may occur.