[][src]Function photon::channels::alter_two_channels

pub fn alter_two_channels(
    img: &mut PhotonImage,
    channel1: usize,
    amt1: i16,
    channel2: usize,
    amt2: i16
)

Increment/decrement two channels' values simultaneously by adding an amt to each channel per pixel.

Arguments

Example

// For example, to increase the values of the Red and Blue channels per pixel:
photon::channels::inc_two_channels(&mut img, 0, 10, 2, 20);