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

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);

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]

[src]

Formats the value using the given formatter.

impl PartialEq for BlackGenerationFunction
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Copy for BlackGenerationFunction
[src]

impl Clone for BlackGenerationFunction
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more