[][src]Function photon::channels::remove_channel

pub fn remove_channel(img: &mut PhotonImage, channel: usize, min_filter: u8)

Set a certain channel to zero, thus removing the channel's influence in the pixels' final rendered colour.

Arguments

Example

// For example, to remove the Red channel with a min_filter of 100:
photon::channels::remove_channel(&mut img, 0, 100);