pub fn fit_rectangle(
    src_rect: &Rect,
    dst_rect: &Rect,
    style: FitStyle
) -> Transform
Expand description

Computes a transform that fits a rectangle into another one.