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

The color type on which the map operates on

Required Methods

Returns the index of the closed match of color in the color map.

Maps color to the closest color in the color map.

Implementors