pub fn frame_size(source: (u32, u32), cover: (u32, u32)) -> (u32, u32)Expand description
The size a source sized frame is kept at to show in a box of
cover pixels: scaled down, keeping its shape, to the smallest size
that still covers the box, so any fit draws it without scaling up. It
is never scaled up, and keeps at least one pixel a side.