[][src]Function photon::channels::alter_blue_channel

pub fn alter_blue_channel(img: &mut PhotonImage, amt: i16)

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

Arguments

Example

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