Function resize
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,
Available on crate feature
dep_image
only.Expand description
Resize the supplied image to the specified dimensions.
nwidth
and nheight
are the new dimensions.
filter
is the sampling filter to use.