pub fn build_icc_cache_for_list(
list: &DisplayList,
system_cmyk_bytes: Option<&Arc<Vec<u8>>>,
proofing_enabled: bool,
) -> IccCacheExpand description
Pre-downsample an image when the transform indicates significant downscaling.
tiny-skia’s bilinear filter only samples a 2×2 neighborhood — it has no mipmap support, so large downscale ratios cause severe aliasing (e.g., 300 DPI bitmap fonts rendered at screen resolution).
For axis-aligned transforms: box-filter resample to the exact target dimensions.
Build an IccCache from ICC profiles found in a display list.
Registers all unique ICCBased profiles and optionally the system CMYK
profile. When proofing_enabled is true, ICCBased profiles registered
while scanning the display list are color-managed through the system
CMYK (the PDF’s OutputIntent), so a render-thread cache built from the
effective OutputIntent matches the bake-time cache that produced the
display list. PostScript callers should pass false (no
PDF/X OutputIntent semantics).