pub enum BpcMode {
Off,
On,
Auto,
}Expand description
Black Point Compensation mode for CMYK→sRGB conversion.
Reference renderers (Ghostscript, Acrobat, Firefox via lcms2) apply BPC by
default for relative-colorimetric CMYK→sRGB. moxcms 0.8.1 ships BPC
commented out, so without it K-heavy colors render visibly lighter than
reference renderers. See docs/PLAN-BPC.md for the full design.
Variants§
Off
Skip BPC; matches stet’s pre-fix behavior. Useful for proofing-style renders that should preserve actual densities, or for bit-for-bit reproduction of older baselines.
On
Always apply BPC during CMYK→sRGB conversion.
Auto
Default — currently equivalent to On. Reserved for forward
compatibility (eventually could honor PDF rendering-intent or
output-intent hints).
Implementations§
Trait Implementations§
impl Copy for BpcMode
impl Eq for BpcMode
impl StructuralPartialEq for BpcMode
Auto Trait Implementations§
impl Freeze for BpcMode
impl RefUnwindSafe for BpcMode
impl Send for BpcMode
impl Sync for BpcMode
impl Unpin for BpcMode
impl UnsafeUnpin for BpcMode
impl UnwindSafe for BpcMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more