multiple_offsets

Function multiple_offsets 

Source
pub fn multiple_offsets(
    image_path: &str,
    image_output_directory: &str,
    parse_filename: &str,
    offset: u32,
    channel_index: usize,
    channel_index2: usize,
) -> Result<(), Box<dyn Error>>
Expand description

Example

extern crate photon_effects;

let input = "/tmp/logo.png";
let output_dir = "/tmp/";

photon_effects::multiple_offsets(
  input,
  output_dir,
  "logo_multiple_offsets.png",
  30,
  0,
  2
).expect("Couldn't create multiple_offsets image");