Function nannou::image::imageops::contrast [−][src]
pub fn contrast<I, P, S>(
image: &I,
contrast: f32
) -> ImageBuffer<P, Vec<S, Global>> where
I: GenericImageView<Pixel = P>,
P: 'static + Pixel<Subpixel = S>,
S: 'static + Primitive,
Expand description
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.