[−][src]Trait image::imageops::colorops::ColorMap
A color map
Associated Types
type Color
The color type on which the map operates on
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.