[][src]Function raster::transform::resize_fit

pub fn resize_fit(src: &mut Image, w: i32, h: i32) -> RasterResult<()>

Resize an image to fit within the given width and height. The re-sized image will not exceed the given dimension. Preserves the aspect ratio.