Trait rgb::ColorComponentMap
source · [−]pub trait ColorComponentMap<DestPixel, SrcComponent, DestComponent> {
fn map_c<Callback>(&self, f: Callback) -> DestPixel
where
Callback: FnMut(SrcComponent) -> DestComponent;
}
Expand description
Same as ComponentMap
, but doesn’t change the alpha channel (if there’s any alpha).