[][src]Function photon::filters::filter

pub fn filter(img: &mut PhotonImage, filter_name: &str)

Apply a filter to an image. Over 20 filters are available. The filters are as follows:

Arguments

Example

// For example, to add a filter called "vintage" to an image:
use photon::filters;
photon::filters::filter(&mut img, "vintage");