[−][src]Function photon::channels::alter_green_channel
pub fn alter_green_channel(img: &mut PhotonImage, amt: i16)
Increment or decrement every pixel's Green channel by a constant.
Arguments
img
- A PhotonImage.amt
- The amount to increment/decrement the channel's value by for that pixel.
Example
// For example, to increase the Green channel for all pixels by 20: use photon::channels; photon::channels::alter_green_channel(&mut img, 10);