Enum printpdf::types::plugins::graphics::color::Color
[−]
[src]
pub enum Color { Rgb(Rgb), Cmyk(Cmyk), Greyscale(Greyscale), SpotColor(SpotColor), }
Wrapper for Rgb, Cmyk and other color types
Variants
Rgb(Rgb)
Cmyk(Cmyk)
Greyscale(Greyscale)
SpotColor(SpotColor)
Methods
impl Color
[src]
fn into_vec(self) -> Vec<f64>
[src]
Consumes the color and converts into into a vector of numbers
fn get_icc_profile(&self) -> Option<&Option<IccProfileRef>>
[src]
Returns if the color has an icc profile attached
Trait Implementations
impl Debug for Color
[src]
impl Clone for Color
[src]
fn clone(&self) -> Color
[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