[−][src]Function photon::effects::offset_blue
pub fn offset_blue(img: &mut PhotonImage, offset_amt: u32)
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::effects; photon::effects::offset_blue(img, 40);