pub extern "C" fn __wasm_bindgen_generated_vertical_strips(
    arg0: <PhotonImage as RefMutFromWasmAbi>::Abi,
    arg1: <u8 as FromWasmAbi>::Abi
) -> <() as ReturnWasmAbi>::Abi
Expand description

Vertical strips. Divide an image into a series of equal-width strips, for an artistic effect.

Arguments

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

Example

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

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