Skip to main content

fit

Function fit 

Source
pub fn fit(w: i32, h: i32, max_side: u32) -> (i32, i32)
Expand description

The size to scale a w × h picture to so its long side is at most max_side, never enlarging.