[][src]Enum printpdf::types::plugins::graphics::extgstate::BlackGenerationFunction

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

This example is not 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

This example is not 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 Clone for BlackGenerationFunction[src]

impl Copy for BlackGenerationFunction[src]

impl Debug for BlackGenerationFunction[src]

impl PartialEq<BlackGenerationFunction> for BlackGenerationFunction[src]

impl StructuralPartialEq for BlackGenerationFunction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.