[][src]Function photon::channels::alter_red_channel

pub fn alter_red_channel(photon_image: &mut PhotonImage, amt: i16)

Increment or decrement every pixel's Red channel by a constant.

Arguments

Example

// For example, to increase the Red channel for all pixels by 10:
use photon::channels;
photon::channels::alter_red_channel(&mut img, 10);