Skip to main content

resize_with

Function resize_with 

Source
pub fn resize_with(
    img: DynamicImage,
    max: u32,
    filter: FilterType,
) -> DynamicImage
Expand description

resize with an explicit filter.

Like Eagle, an image more than twice the target size is first halved repeatedly (never below the target) while it is over 1.5 times the target, and only then drawn at the final size.