Trait image::color::Invert

source ·
pub(crate) trait Invert {
    // Required method
    fn invert(&mut self);
}
Expand description

Invert a color

Required Methods§

source

fn invert(&mut self)

Inverts a color in-place.

Implementors§

source§

impl<T: Primitive> Invert for Luma<T>

source§

impl<T: Primitive> Invert for LumaA<T>

source§

impl<T: Primitive> Invert for Rgb<T>

source§

impl<T: Primitive> Invert for Rgba<T>