Skip to main content

fit_image_within

Function fit_image_within 

Source
pub fn fit_image_within(size: ImageSize, bounds: ImageSize) -> ImageSize
Expand description

Scales a size to fit completely within bounds, preserving aspect ratio.