Skip to main content

cover_size

Function cover_size 

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

Scales a size so it fully covers bounds, preserving aspect ratio.