image::imageops::colorops

Function brighten

Source
pub fn brighten<I, P, S>(image: &I, value: i32) -> ImageBuffer<P, Vec<S>>
where I: GenericImageView<Pixel = P>, P: Pixel<Subpixel = S> + 'static, S: Primitive + 'static,
Expand description

Brighten the supplied image. value is the amount to brighten each pixel by. Negative values decrease the brightness and positive values increase it.

See also brighten_in_place.