Skip to main content

fit_within

Function fit_within 

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

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