[−][src]Trait image::imageops::colorops::ColorMap
A color map
Associated Types
Loading content...Required methods
fn index_of(&self, color: &Self::Color) -> usize[src]
Returns the index of the closest match of color
in the color map.
fn map_color(&self, color: &mut Self::Color)[src]
Maps color to the closest color in the color map.
Provided methods
fn lookup(&self, index: usize) -> Option<Self::Color>[src]
Looks up color by index in the color map. If idx is out of range for the color map, or
ColorMap doesn't implement lookup None is returned.
fn has_lookup(&self) -> bool[src]
Determine if this implementation of ColorMap overrides the default lookup.
Implementations on Foreign Types
impl ColorMap for NeuQuant[src]
type Color = Rgba<u8>
fn index_of(&self, color: &Rgba<u8>) -> usize[src]
fn lookup(&self, idx: usize) -> Option<Self::Color>[src]
fn has_lookup(&self) -> bool[src]
Indicate NeuQuant implements lookup.
fn map_color(&self, color: &mut Rgba<u8>)[src]
Implementors
impl ColorMap for BiLevel[src]
type Color = Luma<u8>
fn index_of(&self, color: &Luma<u8>) -> usize[src]
fn lookup(&self, idx: usize) -> Option<Self::Color>[src]
fn has_lookup(&self) -> bool[src]
Indicate NeuQuant implements lookup.