pub struct ColorCorrectionMatrix { /* private fields */ }Expand description
Color correction matrix
Implementations§
Source§impl ColorCorrectionMatrix
impl ColorCorrectionMatrix
Sourcepub fn brightness(factor: f64) -> Self
pub fn brightness(factor: f64) -> Self
Creates a brightness adjustment matrix
Sourcepub fn saturation(factor: f64) -> Self
pub fn saturation(factor: f64) -> Self
Creates a saturation adjustment matrix
Sourcepub fn apply_to_image(&self, data: &mut [u8])
pub fn apply_to_image(&self, data: &mut [u8])
Applies the matrix to RGBA image data
Trait Implementations§
Source§impl Clone for ColorCorrectionMatrix
impl Clone for ColorCorrectionMatrix
Source§fn clone(&self) -> ColorCorrectionMatrix
fn clone(&self) -> ColorCorrectionMatrix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColorCorrectionMatrix
impl Debug for ColorCorrectionMatrix
impl Copy for ColorCorrectionMatrix
Auto Trait Implementations§
impl Freeze for ColorCorrectionMatrix
impl RefUnwindSafe for ColorCorrectionMatrix
impl Send for ColorCorrectionMatrix
impl Sync for ColorCorrectionMatrix
impl Unpin for ColorCorrectionMatrix
impl UnsafeUnpin for ColorCorrectionMatrix
impl UnwindSafe for ColorCorrectionMatrix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more