[−][src]Function photon::effects::multiple_offsets
pub fn multiple_offsets(
photon_image: &mut PhotonImage,
offset: u32,
channel_index: usize,
channel_index2: usize
)
Adds multiple offsets to the image by a certain number of pixels (on two channels).
Arguments
img
- A PhotonImage that contains a view into the image.offset
- The offset is added to the pixels in the image.
Example
// For example, to add a 30-pixel offset to both the red and blue channels: use photon::effects; photon::effects::multiple_offsets(img, 30, 0, 2);