Function photon_rs::effects::offset_blue
source · pub fn offset_blue(img: &mut PhotonImage, offset_amt: u32)
Expand description
Adds an offset to the blue channel by a certain number of pixels.
Arguments
img
- A PhotonImage that contains a view into the image.offset_amt
- The offset you want to move the blue channel by.
Example
// For example, to add an offset to the green channel by 40 pixels.
use photon_rs::effects::offset_blue;
use photon_rs::native::open_image;
let mut img = open_image("img.jpg").expect("File should open");
offset_blue(&mut img, 40_u32);