Function nannou::image::imageops::colorops::contrast[][src]

pub fn contrast<I, P, S>(
    image: &I,
    contrast: f32
) -> ImageBuffer<P, Vec<S, Global>> where
    S: Primitive + 'static,
    I: GenericImageView<Pixel = P>,
    P: Pixel<Subpixel = S> + 'static, 

Adjust the contrast of the supplied image. contrast is the amount to adjust the contrast by. Negative values decrease the contrast and positive values increase the contrast.

See also contrast_in_place.