Enum printpdf::types::plugins::graphics::extgstate::BlackGenerationFunction
[−]
[src]
pub enum BlackGenerationFunction { Default, WithUnderColorRemoval, }
Black generation calculates the amount of black to be used when trying to reproduce a particular color.
Variants
Default
Regular black generation function
⚠Be careful when using this code, it's not being tested!
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
⚠Be careful when using this code, it's not being tested!
let cyan = 1.0 - red; let magenta = 1.0 - green; let yellow = 1.0 - blue; let black = min(cyan, magenta, yellow);
Trait Implementations
impl Debug for BlackGenerationFunction
[src]
impl PartialEq for BlackGenerationFunction
[src]
fn eq(&self, __arg_0: &BlackGenerationFunction) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Copy for BlackGenerationFunction
[src]
impl Clone for BlackGenerationFunction
[src]
fn clone(&self) -> BlackGenerationFunction
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more