NcRgb_u32

Type Alias NcRgb_u32 

Source
pub type NcRgb_u32 = u32;
Expand description

24 bits broken into 3x RGB components.

It’s recommended to use NcRgb instead.

Unlike with NcChannel_u32, operations involving NcRgb_u32 ignores the last 4th byte (the alpha component).

§Diagram

-------- RRRRRRRR GGGGGGGG BBBBBBBB

type in C: no data type

See also: NcRgba_u32 and NcChannel_u32 types.

Trait Implementations§

Source§

impl<'a> From<&'a NcRgb> for &'a NcRgb_u32

Source§

fn from(s: &'a NcRgb) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut NcRgb> for &'a mut NcRgb_u32

Source§

fn from(s: &'a mut NcRgb) -> Self

Converts to this type from the input type.
Source§

impl From<NcRgb> for NcRgb_u32

Source§

fn from(s: NcRgb) -> Self

Converts to this type from the input type.