Struct image::imageops::colorops::BiLevel [] [src]

pub struct BiLevel;

A bi-level color map

Trait Implementations

impl Copy for BiLevel
[src]

impl Clone for BiLevel
[src]

fn clone(&self) -> BiLevel

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl ColorMap for BiLevel
[src]

type Color = Luma<u8>

The color type on which the map operates on

fn index_of(&self, color: &Luma<u8>) -> usize

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

fn map_color(&self, color: &mut Luma<u8>)

Maps color to the closest color in the color map.