Trait image::imageops::colorops::ColorMap
[−]
[src]
pub trait ColorMap { type Color; fn index_of(&self, color: &Self::Color) -> usize; fn map_color(&self, color: &mut Self::Color); }
A color map
Associated Types
Required Methods
fn index_of(&self, color: &Self::Color) -> usize
[−]
Returns the index of the closed match of color
in the color map.
fn map_color(&self, color: &mut Self::Color)
[−]
Maps color
to the closest color in the color map.