Skip to main content

scale_to_width

Function scale_to_width 

Source
pub fn scale_to_width(size: ImageSize, width: u32) -> Option<ImageSize>
Expand description

Scales a size to an exact width and rounded matching height.