image::imageops::colorops

Function contrast_in_place

Source
pub fn contrast_in_place<I>(image: &mut I, contrast: f32)
where I: GenericImage,
Expand description

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

See also contrast.