Struct bmp::Pixel [-] [+] [src]

pub struct Pixel {
    pub r: u8,
    pub g: u8,
    pub b: u8,
}

The pixel data used in the Image.

It has three values for the red, blue and green color channels, respectively.

Fields

r
g
b

Trait Implementations

Derived Implementations

impl PartialEq for Pixel

fn eq(&self, __arg_0: &Pixel) -> bool

fn ne(&self, __arg_0: &Pixel) -> bool

impl Eq for Pixel

impl Debug for Pixel

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for Pixel

impl Clone for Pixel

fn clone(&self) -> Pixel

fn clone_from(&mut self, source: &Self)