pub fn horizontal_strips(photon_image: &mut PhotonImage, num_strips: u8)
Expand description

Horizontal strips. Divide an image into a series of equal-height strips, for an artistic effect.

Arguments

  • img - A PhotonImage that contains a view into the image.
  • num_strips - The number of strips

Example

// For example, to draw horizontal strips on a `PhotonImage`:
use photon_rs::effects::horizontal_strips;
use photon_rs::native::open_image;

let mut img = open_image("img.jpg").expect("File should open");
horizontal_strips(&mut img, 8u8);