Function brighten

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

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.][brighten_in_place]