Enum printpdf::BlackGenerationFunction
source · [−]pub enum BlackGenerationFunction {
Default,
WithUnderColorRemoval,
}
Expand description
Black generation calculates the amount of black to be used when trying to reproduce a particular color.
Variants
Default
Regular black generation function
ⓘ
let cyan = 1.0 - red;
let magenta = 1.0 - green;
let yellow = 1.0 - blue;
let black = min(cyan, magenta, yellow);
WithUnderColorRemoval
Expects an UnderColorRemoval to be set. This will compensate the color for the added black
ⓘ
let cyan = 1.0 - red;
let magenta = 1.0 - green;
let yellow = 1.0 - blue;
let black = min(cyan, magenta, yellow);
Trait Implementations
sourceimpl Clone for BlackGenerationFunction
impl Clone for BlackGenerationFunction
sourcefn clone(&self) -> BlackGenerationFunction
fn clone(&self) -> BlackGenerationFunction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BlackGenerationFunction
impl Debug for BlackGenerationFunction
sourceimpl PartialEq<BlackGenerationFunction> for BlackGenerationFunction
impl PartialEq<BlackGenerationFunction> for BlackGenerationFunction
sourcefn eq(&self, other: &BlackGenerationFunction) -> bool
fn eq(&self, other: &BlackGenerationFunction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for BlackGenerationFunction
impl StructuralPartialEq for BlackGenerationFunction
Auto Trait Implementations
impl RefUnwindSafe for BlackGenerationFunction
impl Send for BlackGenerationFunction
impl Sync for BlackGenerationFunction
impl Unpin for BlackGenerationFunction
impl UnwindSafe for BlackGenerationFunction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more