pub fn resize<I: GenericImageView>(
    image: &I,
    nwidth: u32,
    nheight: u32,
    filter: FilterType,
) -> ImageBuffer<I::Pixel, Vec<<I::Pixel as Pixel>::Subpixel>>Expand description
Image sampling
Resize the supplied image to the specified dimensions.
nwidth and nheight are the new dimensions.
filter is the sampling filter to use.
This method assumes alpha pre-multiplication for images that contain non-constant alpha.