Skip to main content

zoom_for

Function zoom_for 

Source
pub(crate) fn zoom_for(w: u32, h: u32) -> f64
Expand description

How much a w×h region is enlarged: up to MAX_ZOOM, and not past MAX_IMAGE_EDGE on its long edge. Never below 1.