Trait image2::color::Color

source ·
pub trait Color: Sync + Send {
    fn name() -> &'static str;
    fn channels() -> usize;
    fn has_alpha() -> bool;
}
Expand description

Stores colorspace information

Required Methods§

The name of a colorspace, for example: “rgb”

The number of channels

Determines if the last channel should be used as an alpha channel

Implementors§