[][src]Function photon::channels::alter_channels

pub fn alter_channels(img: &mut PhotonImage, r_amt: i16, g_amt: i16, b_amt: i16)

Increment all 3 channels' values by adding an amt to each channel per pixel.

Arguments

Example

// For example, to increase the values of the Red channel by 10, the Green channel by 20, 
// and the Blue channel by 50:
// photon::channels::alter_channels(&mut img, 10, 20, 50);