tint

Function tint 

Source
pub fn tint(
    image_path: &str,
    image_output_directory: &str,
    parse_filename: &str,
    r_offset: u32,
    g_offset: u32,
    b_offset: u32,
) -> Result<(), Box<dyn Error>>
Expand description

Example

extern crate photon_effects;

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

photon_effects::tint(
  input,
  output_dir,
  "logo_tint.png",
  18,
  22,
  26,
).expect("Couldn't create tint image");