Skip to main content

MIN_IMAGE_DPI

Constant MIN_IMAGE_DPI 

Source
pub const MIN_IMAGE_DPI: f32 = 1.0;
Expand description

Lower bound applied to any requested image DPI. A non-positive request would produce a zero/negative downsample target, so it is clamped up to this floor.

Public alongside DEFAULT_IMAGE_DPI because RenderOptions::with_image_dpi silently clamps to it: a caller passing 0.0 gets this value back, and without the constant there is no way to predict or detect that from outside the crate.