pub struct RGB24(/* private fields */);Expand description
One of commonly used pixel formats. 32-bit per pixel format use 8 bit for each of red, green and blue.
Trait Implementations§
Source§impl Color for RGB24
impl Color for RGB24
fn to_rgb(&self) -> RGB
fn to_hsv(&self) -> HSVwhere
Self: Sized,
fn to_hsl(&self) -> HSLwhere
Self: Sized,
fn get_red(&self) -> f32
fn get_green(&self) -> f32
fn get_blue(&self) -> f32
fn get_hue(&self) -> f32where
Self: Sized,
fn get_hsl_saturation(&self) -> f32where
Self: Sized,
fn get_hsv_saturation(&self) -> f32where
Self: Sized,
fn get_lightness(&self) -> f32where
Self: Sized,
fn get_value(&self) -> f32where
Self: Sized,
impl Copy for RGB24
Auto Trait Implementations§
impl Freeze for RGB24
impl RefUnwindSafe for RGB24
impl Send for RGB24
impl Sync for RGB24
impl Unpin for RGB24
impl UnwindSafe for RGB24
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