Skip to main content

quality_for_skew

Function quality_for_skew 

Source
pub(crate) fn quality_for_skew(transform: &Affine) -> ImageQuality
Expand description

Choose image sampling quality based on skew presence.

Skewed transforms need Medium quality to avoid aliasing; axis-aligned transforms use Low (nearest-neighbour) since the content was already rasterized at pixel boundaries.