[−][src]Function photon_rs::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
img
- A PhotonImage.amt
- The amount to increment or decrement the channel's value by for that pixel.
Example
// For example, to increase the Blue channel for all pixels by 10: use photon::channels; photon::channels::alter_blue_channel(&mut img, 10);