pub fn resize<I>(
    image: &I,
    nwidth: u32,
    nheight: u32,
    filter: FilterType,
) -> ImageBuffer<<I as GenericImageView>::Pixel, Vec<<<I as GenericImageView>::Pixel as Pixel>::Subpixel>>where
    I: GenericImageView,
    <I as GenericImageView>::Pixel: 'static,
    <<I as GenericImageView>::Pixel as Pixel>::Subpixel: 'static,Expand description
Resize the supplied image to the specified dimensions.
ยงArguments:
nwidth- new image width.nheight- new image height.filter- is the sampling filter to use, see FilterType for mor information.
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.